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

Unable to render in a React project #2

Open
adamgall opened this issue Dec 30, 2019 · 0 comments
Open

Unable to render in a React project #2

adamgall opened this issue Dec 30, 2019 · 0 comments

Comments

@adamgall
Copy link

adamgall commented Dec 30, 2019

I'm attempting to use this package in a React project, but keep getting a ReferenceError: THREE is not defined error from Module../node_modules/three.phenomenon/dist/three.phenomenon.mjs

To recreate:

  1. $ npx create-react-app foobar
  2. $ cd foobar
  3. $ yarn add three three.phenomenon
  4. import Phenomenon from "three.phenomenon"; to the top of src/App.js
  5. $ yarn start
  6. navigate to http://localhost:3000/ in your browser to see the error
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant