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

SyntaxError: Cannot use import statement outside a module #181

Open
Kishor-Kumar-Namdeo opened this issue Jan 7, 2022 · 1 comment
Open

Comments

@Kishor-Kumar-Namdeo
Copy link

@lavrton please help me to resolve this issue,
Node:- 14.x
"vue": "2.6.8",
"vue-konva": "^2.1.7",

/app/node_modules/konva/lib/index-node.js:1
import { Konva } from './_FullInternals.js';
^^^^^^

SyntaxError: Cannot use import statement outside a module
at Module._compile (internal/modules/cjs/loader.js:891:18)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:991:10)
at Module.load (internal/modules/cjs/loader.js:811:32)
at Function.Module._load (internal/modules/cjs/loader.js:723:14)
at Module.require (internal/modules/cjs/loader.js:848:19)
at require (internal/modules/cjs/helpers.js:74:18)
at webpackUniversalModuleDefinition (/app/node_modules/vue-konva/umd/vue-konva.js:7:44)
at Object. (/app/node_modules/vue-konva/umd/vue-konva.js:14:3)
at Module._compile (internal/modules/cjs/loader.js:955:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:991:10)

@lavrton
Copy link
Member

lavrton commented Jan 7, 2022

Try to migrate to ES modules.

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