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

./node_modules/pako/lib/zlib/trees.js Module parse failed #262

Closed
rotten-bmiller opened this issue Nov 5, 2022 · 4 comments
Closed

./node_modules/pako/lib/zlib/trees.js Module parse failed #262

rotten-bmiller opened this issue Nov 5, 2022 · 4 comments

Comments

@rotten-bmiller
Copy link

Started seeing this all of a sudden today for ReactJS builds using babel-loader. Not sure if this was a babel change that caused or if this is something on pako end.

image

@simiii
Copy link

simiii commented Nov 5, 2022

Same problem here

https://stackoverflow.com/questions/74323826/module-parse-failed-unexpected-token-257106-you-may-need-an-appropriate-load

@TCBeekley
Copy link

TCBeekley commented Nov 5, 2022

I think line 278 in trees.js, this:

// tree_desc *desc; /* the tree descriptor */

Just needs to go to:
// tree_desc *desc; the tree descriptor

Update: A couple people have already opened PRs to fix this.

@nxpkoman
Copy link

nxpkoman commented Nov 6, 2022

Yep, until they doesn't solve this issue, you can fix on your machine by removing all comments inside node_modules\pako\lib\zlib\trees.js and after this you can restart app

I think line 278 in trees.js, this:

// tree_desc *desc; /* the tree descriptor */

Just needs to go to: // tree_desc *desc; the tree descriptor

Update: A couple people have already opened PRs to fix this.

@rotten-bmiller
Copy link
Author

I upgraded some babel packages as mentioned here: https://stackoverflow.com/questions/74323826/module-parse-failed-unexpected-token-257106-you-may-need-an-appropriate-load but it looks like @puzrin has committed changes to fix the original problem. Closing issue. Thank you @puzrin.

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

4 participants