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

Parsing Error in numbers #2031

Open
fschatbot opened this issue Mar 8, 2022 · 2 comments
Open

Parsing Error in numbers #2031

fschatbot opened this issue Mar 8, 2022 · 2 comments

Comments

@fschatbot
Copy link

fschatbot commented Mar 8, 2022

Example Package: color@4.2.1
Main Error Cause: Not able to parse numbers such as 0.039_28 which is same as 0.03928
Current Fix: Go in and remove that underscore manually
Error Log:

Error: Parsing file node_modules\color\index.js: Invalid number (272:21)
    at Deps.parseDeps (node_modules\module-deps\index.js:519:15)
    at getDeps (node_modules\module-deps\index.js:447:44)
    at node_modules\module-deps\index.js:430:38
    at ConcatStream.<anonymous> (node_modules\concat-stream\index.js:37:43)
    at ConcatStream.emit (node:events:532:35)
    at finishMaybe (node_modules\readable-stream\lib\_stream_writable.js:630:14)
    at endWritable (node_modules\readable-stream\lib\_stream_writable.js:638:3)
    at ConcatStream.Writable.end (node_modules\readable-stream\lib\_stream_writable.js:594:41)
    at DuplexWrapper.onend (node_modules\readable-stream\lib\_stream_readable.js:577:10)
    at Object.onceWrapper (node:events:639:28)
@ljharb
Copy link
Member

ljharb commented Mar 8, 2022

That’s a pretty recent syntax; usually packages would transpile that out. What version of node are you using?

@fschatbot
Copy link
Author

Node: v16.14.0
npm: v8.5.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants