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

Failed to compile after upgrade from 8.0.6 to 8.1.0 #835

Closed
ynwd opened this issue Mar 20, 2020 · 6 comments
Closed

Failed to compile after upgrade from 8.0.6 to 8.1.0 #835

ynwd opened this issue Mar 20, 2020 · 6 comments

Comments

@ynwd
Copy link

ynwd commented Mar 20, 2020

Failed to compile after upgrade from 8.0.6 to 8.1.0
Webpack version: 4.42.0

ERROR in ./src/components/App.tsx
Module build failed (from ./node_modules/babel-loader/lib/index.js):
ReferenceError: /Users/user/Documents/sample/src/components/App.tsx: Unknown helper createSuper
    at loadHelper (/Users/user/Documents/sample/node_modules/@babel/helpers/lib/index.js:225:27)
    at Object.ensure (/Users/user/Documents/sample/node_modules/@babel/helpers/lib/index.js:270:3)
    at File.addHelper (/Users/user/Documents/sample/node_modules/@babel/core/lib/transformation/file/file.js:203:15)
    at pushInheritsToBody (/Users/user/Documents/sample/node_modules/@babel/plugin-transform-classes/lib/transformClass.js:471:384)
    at pushConstructorToBody (/Users/user/Documents/sample/node_modules/@babel/plugin-transform-classes/lib/transformClass.js:461:5)
    at pushConstructor (/Users/user/Documents/sample/node_modules/@babel/plugin-transform-classes/lib/transformClass.js:449:5)
    at pushBody (/Users/user/Documents/sample/node_modules/@babel/plugin-transform-classes/lib/transformClass.js:187:11)
    at buildBody (/Users/user/Documents/sample/node_modules/@babel/plugin-transform-classes/lib/transformClass.js:133:5)
    at classTransformer (/Users/user/Documents/sample/node_modules/@babel/plugin-transform-classes/lib/transformClass.js:537:5)
    at transformClass (/Users/user/Documents/sample/node_modules/@babel/plugin-transform-classes/lib/transformClass.js:573:10)
 @ ./src/components/index.tsx 7:0-24 8:41-44
 @ multi ./src/components/index.tsx webpack-hot-middleware/client?path=/__webpack_hmr&timeout=20000&reload=true
@adascal
Copy link

adascal commented Mar 20, 2020

Possibly related: facebook/create-react-app#8680

@existentialism
Copy link
Member

@adascal seems like a different error?

@adascal
Copy link

adascal commented Mar 20, 2020

Error is different, but problem appeared exactly after babel release :)
Like problem with create-react-app

@existentialism
Copy link
Member

@adascal gotcha, yeah, not 100% sure, but they seem unrelated. I already posted in the CRA thread about that issue.

@existentialism
Copy link
Member

@ynwd babel/babel#11298

@existentialism
Copy link
Member

The fix for this was released in https://github.com/babel/babel/releases/tag/v7.9.2!

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