When running npm run build
on my Vue project, I receive the following error:
Unhandled rejection Error: original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.
Has anyone else experienced this issue?
Install for your project and run build again
npm i [email protected]
npm run build
If you have vue.config.js
, setting productionSourceMap: false
resolves the issue when running npm run build
on a vuejs project.
https://cli.vuejs.org/config/#productionsourcemap
module.exports = {
// other config
productionSourceMap: false
}
If using webpack(not tested), then sourceMap: null
https://github.com/webpack/webpack-sources/issues/28#issuecomment-342066023
Then re-run build (might need to also delete package-lock.json
or node_modules
)
npm run build
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With