myliang/x-spreadsheet

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

baixjian opened this issue · 0 comments

/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.