Open
Description
node v16.15
[email protected]
[email protected]
To find a solution to #121 I try to update [email protected] and use [email protected]
The result is a new error about Module parse.
ERROR Failed to compile with 1 error 16:09:27
error in ./node_modules/vue-notion/dist/esm.js
Module parse failed: Unexpected token (16:31)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
| let index = -1;
| Object.keys(blockMap).forEach(id => {
> blockMap[id].value.content?.forEach(blockId => {
| const blockType = blockMap[blockId]?.value?.type;
| if (blockType && blockType !== lastType) {
@ ./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/@vue/cli-service/node_modules/vue-loader/lib??vue-loader-options!./src/components/WaterPump/PumpCalibration/PumpCalibrationDialog/TutorialItem.vue?vue&type=script&lang=js& 1:0-59 5:4-18 23:26-39
@ ./src/components/WaterPump/PumpCalibration/PumpCalibrationDialog/TutorialItem.vue?vue&type=script&lang=js&
@ ./src/components/WaterPump/PumpCalibration/PumpCalibrationDialog/TutorialItem.vue
@ ./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/@vue/cli-service/node_modules/vue-loader/lib??vue-loader-options!./src/components/WaterPump/PumpCalibration/PumpCalibrationDialog/PumpCalibrationDialog.vue?vue&type=script&lang=js&
@ ./src/components/WaterPump/PumpCalibration/PumpCalibrationDialog/PumpCalibrationDialog.vue?vue&type=script&lang=js&
@ ./src/components/WaterPump/PumpCalibration/PumpCalibrationDialog/PumpCalibrationDialog.vue
@ ./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/@vue/cli-service/node_modules/vue-loader/lib??vue-loader-options!./src/components/WaterPump/WaterPumpBlock/WaterPumpBloc.vue?vue&type=script&lang=js&
@ ./src/components/WaterPump/WaterPumpBlock/WaterPumpBloc.vue?vue&type=script&lang=js&
@ ./src/components/WaterPump/WaterPumpBlock/WaterPumpBloc.vue
@ ./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/@vue/cli-service/node_modules/vue-loader/lib??vue-loader-options!./src/views/WaterPumpsView.vue?vue&type=script&lang=js&
@ ./src/views/WaterPumpsView.vue?vue&type=script&lang=js&
@ ./src/views/WaterPumpsView.vue
@ ./src/router/index.js
@ ./src/main.js
@ multi (webpack)-dev-server/client?http://192.168.0.68:8081&sockPath=/sockjs-node (webpack)/hot/dev-server.js ./src/main.js
Each object key looking like blockMap[id].value.content?.forEach
cannot be parsed because the ? on the key content.
When I remove all the ? and fix syntax the module can be parsed and built.
So I don't know what happened with the syntax but vuejs2.7.14 is still not compatible.
Metadata
Metadata
Assignees
Labels
No labels