-
Notifications
You must be signed in to change notification settings - Fork 312
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
Clean typescript install giving "Module parse failed: Octal literal in strict mode" when opening #125
Comments
Thanks for the feedbacks! create-r3f-app 1.6.7 fix the npx issue: |
Thanks for the quick response, but whatever you did is causing other issues. 😢 First, running Running Uncaught SyntaxError: "undefined" is not valid JSON
at JSON.parse (<anonymous>)
at parseModel (webpack-internal:///(:3000/app-client)/./node_modules/next/dist/compiled/react-server-dom-webpack/cjs/react-server-dom-webpack-client.browser.development.js:33:15)
at resolveModule (webpack-internal:///(:3000/app-client)/./node_modules/next/dist/compiled/react-server-dom-webpack/cjs/react-server-dom-webpack-client.browser.development.js:749:33)
at processFullRow (webpack-internal:///(:3000/app-client)/./node_modules/next/dist/compiled/react-server-dom-webpack/cjs/react-server-dom-webpack-client.browser.development.js:825:9)
at processBinaryChunk (webpack-internal:///(:3000/app-client)/./node_modules/next/dist/compiled/react-server-dom-webpack/cjs/react-server-dom-webpack-client.browser.development.js:869:5)
at progress (webpack-internal:///(:3000/app-client)/./node_modules/next/dist/compiled/react-server-dom-webpack/cjs/react-server-dom-webpack-client.browser.development.js:1476:5) The above error occurred in the <ServerRoot> component:
at ServerRoot (webpack-internal:///(app-client)/./node_modules/next/dist/client/app-index.js:147:11)
at RSCComponent
at Root (webpack-internal:///(app-client)/./node_modules/next/dist/client/app-index.js:164:11)
Consider adding an error boundary to your tree to customize error handling behavior.
Visit https://reactjs.org/link/error-boundaries to learn more about error boundaries. Uncaught SyntaxError: "undefined" is not valid JSON
at JSON.parse (<anonymous>)
at parseModel (webpack-internal:///(:3000/app-client)/./node_modules/next/dist/compiled/react-server-dom-webpack/cjs/react-server-dom-webpack-client.browser.development.js:33:15)
at resolveModule (webpack-internal:///(:3000/app-client)/./node_modules/next/dist/compiled/react-server-dom-webpack/cjs/react-server-dom-webpack-client.browser.development.js:749:33)
at processFullRow (webpack-internal:///(:3000/app-client)/./node_modules/next/dist/compiled/react-server-dom-webpack/cjs/react-server-dom-webpack-client.browser.development.js:825:9)
at processBinaryChunk (webpack-internal:///(:3000/app-client)/./node_modules/next/dist/compiled/react-server-dom-webpack/cjs/react-server-dom-webpack-client.browser.development.js:869:5)
at progress (webpack-internal:///(:3000/app-client)/./node_modules/next/dist/compiled/react-server-dom-webpack/cjs/react-server-dom-webpack-client.browser.development.js:1476:5) I tried running |
That seems related to the system, I don't really know how npx works behind the hood so I will remove npx from the readme as we investigate this. I will keep this issue open in the meantime and hopefully, someone knows more about the issue. |
I'll try yarn and see if that fixes the runtime errors. |
OK, so the new window thing was probably just a thing on my end. That went away after closing and reopening the terminal, but Still also getting the "Failed to Compile" error with |
You can debug this by cloning https://github.com/utsuboco/create-r3f-app and running the binary directly. For example: |
Sorry unfortunately this is still failed.. any other way to fix it? |
OK, so I tested on my mac (Node version 19.9.0), and both It looks like this is a platform thing (or maybe a discrepancy between Node v19.9.0 and Node v19.6.1, but that seems less likely). |
Just tested using node 19.9.0 and the same error is occuring. Not certain what is casuing this too happen. |
I tried moving my working install from my Mac to my PC. Naturally, it didn't work at first (I assume there's several platform-specific libraries), so I cleared I also tested a This suggests to me that there's a problem beyond simply the installer, and maybe something with this project and Windows. |
Alright, I have now tested this repo to see if it was broken on my machine, and as it turns out, yes, the most recent version is broken, but it wasn't always. It seems like (according to my testing at least) that this commit: 984e9bb (bump packages and some minor fixes) is the culprit! All previous commits (that I tested) work fine, and running It's likely that one of the dependencies is broken on Windows or is having some strange reaction with another. |
I'm trying to figure out if the packages are to blame, but I've found one oddity: I can't find the commit where I'm not the most well-versed in git, so maybe this is common, but it seems like some changes got suppressed when merging eeb38ac. I feel like that has to be where the issue is, because updating the other packages doesn't break anything. |
OK, I think I may have found a solution to the
Again, I will note that this only seems to be a problem on Windows not my Mac (though, the next.js issue was with darwin, so maybe it's just non-macs? Who knows). |
Today I also encountered this problem, but version 13.3.1 has already been released. It may be due to my local environment that the npm package downloaded is still version 13.3.0. However, the issue has been fixed in next-13.3.1, so I changed to version to13.3.1. The problem has been solved. thanks @RoboticWater . |
I'm seeing this error as well in a fresh run of
Edit: this resolved the issue. I blame powershell 😅
|
Node Version
|
yarn create r3f-app next 3d-mapper -ts
On a clean install of
react-three-next
and runningnpm run dev
I'm getting the following error:Failed to Compile
Incidentally, I also had difficulty installing via the
npx create-r3f-app next 3d-mapper tailwind -ts
command, getting the same problem as #120. I was able to get around this using this suggestion in #119 and then the yarn command, but in both cases, upon running the app, I get the above error.I was able to create a new app via
npx
about 3 weeks ago, so it's probably one of the changes made since then.The text was updated successfully, but these errors were encountered: