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

Module parse failed: Unexpected token #33

Closed
dalmadima opened this issue Nov 23, 2022 · 1 comment
Closed

Module parse failed: Unexpected token #33

dalmadima opened this issue Nov 23, 2022 · 1 comment

Comments

@dalmadima
Copy link

I get the following error

 ERROR  Failed to compile with 1 error                                                                                                                                                                                               22:14:56

 error  in ./node_modules/schema-org-graph-js/dist/index.cjs

Module parse failed: Unexpected token (38:12)
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
| const IdentityId = "#identity";
| const setIfEmpty = (node, field, value) => {
>   if (!node?.[field] && value)
|     node[field] = value;
| };

 @ ./node_modules/@vueuse/schema-org/dist/index.mjs 3:0-138 39:12-32 42:25-36 43:24-45 44:18-31 45:11-37 63:21-41
 @ ./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-loader-v16/dist??ref--1-1!./src/App.vue?vue&type=script&lang=js
 @ ./src/App.vue?vue&type=script&lang=js
 @ ./src/App.vue
 @ ./src/main.js
 @ multi (webpack)-dev-server/client?http://192.168.178.31:8080&sockPath=/sockjs-node (webpack)/hot/dev-server.js ./src/main.js

Node: v16.14.2
npm: 9.1.2

@harlan-zw
Copy link
Collaborator

harlan-zw commented Dec 7, 2022

This may be fixed in version 2. Keep in mind that you may need to add the module to transpile, if you're having bundling errors.

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

No branches or pull requests

2 participants