Comments (11)
Which tool are you using for this? Webpack? It would help to know which and what version.
from its-fine.
i started getting this too.. simply by deleting node_modules and running npm i
from its-fine.
Some basic information about your environment would go a long way to solving this. See the above, a repository recreating the issue would be ideal.
from its-fine.
ok so this is hot i ended up here.
- developing with create-react-app
- faced this issue facebook/create-react-app#12212
- did what is suggested there and in similar issues, one of steps is downgrading react-scripts
- previous errors go away and now I get this error
has nothing to do with my code, everything was working fine, until today with npm i ...
from its-fine.
Downgrading react-scripts puts you to v4 which does not understand Node ESM (related: facebook/create-react-app#10356). Could you try with a clean install on v5?
from its-fine.
sorry my bad, i get a different set of errors with v4 with v5.0.1 I get the below error on start
./node_modules/its-fine/dist/index.mjs
Can't import the named export 'Component' from non EcmaScript module (only default export is available)
all packages
"@emotion/react": "^11.10.4",
"@emotion/styled": "^11.10.4",
"@mui/icons-material": "^5.10.6",
"@mui/material": "^5.10.6",
"@react-three/drei": "^9.32.1",
"@react-three/fiber": "^8.8.2",
"@react-three/postprocessing": "^2.6.2",
"@testing-library/jest-dom": "^5.16.5",
"@testing-library/react": "^13.4.0",
"@testing-library/user-event": "^13.5.0",
"moment": "^2.29.4",
"nanoid": "^4.0.0",
"nipplejs": "^0.9.1",
"react": "^18.2.0",
"react-animated-cursor": "^2.5.1",
"react-dom": "^18.2.0",
"react-favicon": "^1.0.1",
"react-ga": "^3.3.1",
"react-joyride": "^2.5.3",
"react-scripts": "5.0.1",
"simple-peer": "^9.11.1",
"socket.io-client": "^4.5.2",
"three": "^0.144.0",
"use-sound": "^4.0.1",
"web-vitals": "^2.1.4"
from its-fine.
I published a workaround in v1.0.3
. Can you try another clean-install (remove lockfiles, node_modules
)?
from its-fine.
Alright, I bumped its-fine in v8.8.5
of react-three-fiber if you could try now.
from its-fine.
yes everything is working now. Thank you for looking into it
from its-fine.
@hakancunier let me know if there are any withstanding issues on your end. This looks to be resolved between CRA and vanilla Webpack with the work around from #14.
from its-fine.
Hello. I got it working by upgrading react-scripts ^5.0.1. Thank you again.
from its-fine.
Related Issues (8)
- Error following React Native setup guide HOT 3
- Multiple Contexts HOT 2
- Problem with using react three fiber in grafana HOT 4
- 'useId' (imported as 'React') was not found in 'react HOT 2
- Export 'useId' (imported as 'React') was not found in 'react' HOT 1
- ContextBridge not updating without calling root.render() HOT 5
- Fiber is undefined when using concurrent features HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from its-fine.