Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Error loading modules after v0.2.2 #511

Open
1 task
RodrigoHamuy opened this issue Oct 14, 2022 · 1 comment
Open
1 task

[Bug] Error loading modules after v0.2.2 #511

RodrigoHamuy opened this issue Oct 14, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@RodrigoHamuy
Copy link

RodrigoHamuy commented Oct 14, 2022

What version of vite are you using?

3.1.0

System info and storybook versions

System:
OS: Linux 5.15 Ubuntu 22.04.1 LTS 22.04.1 LTS (Jammy Jellyfish)
CPU: (8) x64 11th Gen Intel(R) Core(TM) i7-1165G7 @ 2.80GHz
Binaries:
Node: 16.15.0 - ~/.nvm/versions/node/v16.15.0/bin/node
Yarn: 1.22.19 - ~/.nvm/versions/node/v16.15.0/bin/yarn
npm: 8.5.5 - ~/.nvm/versions/node/v16.15.0/bin/npm
Browsers:
Chrome: 106.0.5249.103
npmPackages:
@storybook/addon-actions: ^6.5.12 => 6.5.12
@storybook/builder-vite: 0.2.2 => 0.2.2
@storybook/react: ^6.5.12 => 6.5.12
@storybook/testing-library: ^0.0.13 => 0.0.13

Describe the Bug

@react-three/drei <Text component no longer works on production build (it does work on development mode). This is the error message:

Uncaught ReferenceError: __name is not defined
    at workerBootstrap...

My guess is that it can't resolve troika-three-text.

Everything works as expected on version v0.2.2, but newer versions result in the above error.

Here are the differences between v0.2.2 and v0.2.4 for convinience.

Link to Minimal Reproducible Example

https://rodrigohamuy.github.io/drei-text-demo/

Participation

  • I am willing to submit a pull request for this issue.
@RodrigoHamuy RodrigoHamuy added the bug Something isn't working label Oct 14, 2022
@idosius
Copy link

idosius commented Oct 26, 2022

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants