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

Module parse failed: Unexpected token error #53

Closed
yorch opened this issue Apr 10, 2023 · 3 comments · Fixed by #54
Closed

Module parse failed: Unexpected token error #53

yorch opened this issue Apr 10, 2023 · 3 comments · Fixed by #54

Comments

@yorch
Copy link
Contributor

yorch commented Apr 10, 2023

Upgrading to 1.0.12 causes a build error due to nullish coalescing operator ?? introduced in ccb88dd#diff-89386aae2ac82c8ec4a0d1367a57061c8abc02b01921b7db3bc139959a5778b7R187-R190

ERROR in /app/node_modules/react-base-table/node_modules/react-virtualized-auto-sizer/dist/react-virtualized-auto-sizer.module.js 236:56
Module parse failed: Unexpected token (236:56)
File was processed with these loaders:
 * ../../node_modules/babel-loader/lib/index.js
You may need an additional loader to handle the result of these loaders.
|         // See issue #150 for more context.
|         const style = window.getComputedStyle(this._parentNode) || {};
>         const paddingLeft = parseInt(style.paddingLeft ?? "0", 10);
|         const paddingRight = parseInt(style.paddingRight ?? "0", 10);
|         const paddingTop = parseInt(style.paddingTop ?? "0", 10);
 @ /app/node_modules/react-base-table/es/AutoResizer.js 3:0-53 29:29-38
 @ /app/node_modules/react-base-table/es/index.js
 @ ./src/components/Table.tsx
...
 @ multi /app/node_modules/@pmmmwh/react-refresh-webpack-plugin/client/ReactRefreshEntry.js /app/node_modules/react-dev-utils/webpackHotDevClient.js ./src/index.tsx

Should it be transpiled when building this library?

Thanks

@drulang
Copy link

drulang commented Apr 10, 2023

+1 I started experiencing this today too

@yorch
Copy link
Contributor Author

yorch commented Apr 10, 2023

PR to fix it: #54

@bvaughn
Copy link
Owner

bvaughn commented Apr 10, 2023

Fixed published as react-virtualized-auto-sizer@1.0.13

Thanks!

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

Successfully merging a pull request may close this issue.

3 participants