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

import { h } from './component/element'; #685

Open
baixjian opened this issue Feb 29, 2024 · 0 comments
Open

import { h } from './component/element'; #685

baixjian opened this issue Feb 29, 2024 · 0 comments

Comments

@baixjian
Copy link

baixjian commented Feb 29, 2024

/node_modules/.pnpm/x-data-spreadsheet@1.1.9/node_modules/x-data-spreadsheet/src/index.js:2
import { h } from './component/element';
^^^^^^

SyntaxError: Cannot use import statement outside a module
at compileFunction ()
at Object.compileFunction (node:vm:360:18)
at wrapSafe (node:internal/modules/cjs/loader:1126:15)
at Module._compile (node:internal/modules/cjs/loader:1162:27)
at Object.Module.extensions..js (node:internal/modules/cjs/loader:1252:10)
at Module.load (node:internal/modules/cjs/loader:1076:32)
at Function.Module.load (node:internal/modules/cjs/loader:911:12)
at ModuleWrap. (node:internal/modules/esm/translators:169:29)
at ModuleJob.run (node:internal/modules/esm/module_job:193:25)
at async Promise.all (index 0)
at async ESMLoader.import (node:internal/modules/esm/loader:530:24)
at async build (file:///Users/xxx/node_modules/.pnpm/vitepress@1.0.0-rc.22_patch_hash=zgkmsd45mb2smijr3bwgeexi4e
@algolia+client-search@4.20.0
@ty_lpkmxbmlvam7y4xfkv4z7qccka/node_modules/vitepress/dist/node/serve-qpgewBA8.js:52991:24)
 ELIFECYCLE  Command failed with exit code 1.

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

1 participant