Skip to content
This repository has been archived by the owner on Apr 19, 2024. It is now read-only.

TypeError: sourceMapConsumer.eachMapping is not a function with "source-map": "^0.8.0-beta.0" #47

Open
Colengms opened this issue Feb 22, 2023 · 0 comments

Comments

@Colengms
Copy link

Our CI lab upgraded Node to v18 on our CI VM's. That caused us to hit an issue (discussed here: parcel-bundler/parcel#8005 )

The suggested work-around for that issue helped. (to add "source-map": "^0.8.0-beta.0" to the resolutions section).

Unfortunately, this fixed version of source-map appears to break compatibility with vscode-nls-dev. We're now getting:

ERROR in ./src/main.ts
Module build failed (from ./node_modules/vscode-nls-dev/lib/webpack-loader.js):
TypeError: sourceMapConsumer.eachMapping is not a function
    at new TextModel (Z:\repos\vscode-cpptools\Extension\node_modules\vscode-nls-dev\lib\lib.js:116:31)
    at Object.processFile (Z:\repos\vscode-cpptools\Extension\node_modules\vscode-nls-dev\lib\lib.js:572:23)
    at module.exports (Z:\repos\vscode-cpptools\Extension\node_modules\vscode-nls-dev\lib\webpack-loader.js:17:26)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant