-
Notifications
You must be signed in to change notification settings - Fork 62
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 (161:57) (in CRA apps) #279
Comments
I have same issue when using Vue.js. I guess babel help this problem but I don't know how exactly. |
I had a similar failure with vanilla Create React App. It's due to this issue (lack of support for nullish coalescing operator), and this fix works (for me). |
Hey all, thanks for the report and helpful links! I've been away but am back now, and have a simple fix in mind for this which I hope to implement this week or early next. Watch this space :) And thanks for your patience until now. |
## [1.14.6](v1.14.5...v1.14.6) (2021-10-13) ### Bug Fixes * **pkg/esm:** target es2020->es2019: workaround old toolchains ([#279](#279)) ([ab63b27](ab63b27))
Hey all (cc: @musiice). Please try the latest version, it works around this CRA issue by compiling down to ES2019 instead of ES2020. Please do report back. |
Bug Report
Describe the bug
Minimal Reproduction
yarn add yahoo-finance2
Environment
Browser or Node: Node
Node version (if applicable): v15.6.0
Npm version: 7.4.0
Library version (e.g.
1.10.1
): 1.14.4Additional Context
error
ReactJS | ./node_modules/yahoo-finance2/dist/esm/src/lib/validateAndCoerceTypes.js 161:57 ReactJS | Module parse failed: Unexpected token (161:57) ReactJS | File was processed with these loaders: ReactJS | * ./node_modules/react-scripts/node_modules/babel-loader/lib/index.js ReactJS | You may need an additional loader to handle the result of these loaders. ReactJS | | /* istanbul ignore next */ ReactJS | | ReactJS | > const logObj = typeof process !== "undefined" && process?.stdout?.isTTY ? obj => console.dir(obj, { ReactJS | | depth: 4, ReactJS | | colors: true
The text was updated successfully, but these errors were encountered: