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

webpack: Failed to compile #16

Closed
AyumiKai opened this issue Jun 5, 2019 · 2 comments
Closed

webpack: Failed to compile #16

AyumiKai opened this issue Jun 5, 2019 · 2 comments

Comments

@AyumiKai
Copy link

AyumiKai commented Jun 5, 2019

ERROR in ./node_modules/react-virtuoso/dist/react-virtuoso.es.production.js
Module parse failed: /Users/xx/Desktop/xx/react-virtuoso/dist/react-virtuoso.es.production.js Unexpected token (1:12692)
You may need an appropriate loader to handle this file type.

hi @petyosi , my packages version:
"webpack": "^3.7.1",
"@babel/core": "^7.1.2",
"@babel/plugin-syntax-class-properties": "^7.0.0",
"@babel/plugin-syntax-dynamic-import": "^7.0.0",
"@babel/plugin-transform-runtime": "^7.1.0",
"@babel/polyfill": "^7.0.0-rc.2",
"@babel/preset-env": "^7.1.0",
"@babel/preset-react": "^7.0.0",

@petyosi
Copy link
Owner

petyosi commented Jun 5, 2019

This does not ring a bell. I am using tsdx for the entire build/package setup, and the build artifacts work as expected in a CRA scaffold, Stackblitz, and CodeSandbox. What's the setup of your project? Perhaps you can compare it to the CRA scaffold and figure out what's the difference that causes this problem.

@AyumiKai
Copy link
Author

AyumiKai commented Jun 7, 2019

This does not ring a bell. I am using tsdx for the entire build/package setup, and the build artifacts work as expected in a CRA scaffold, Stackblitz, and CodeSandbox. What's the setup of your project? Perhaps you can compare it to the CRA scaffold and figure out what's the difference that causes this problem.

yeah,It is my babel configuration problem

@AyumiKai AyumiKai closed this as completed Jun 7, 2019
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

2 participants