myliang / x-spreadsheet

The project has been migrated to @wolf-table/table https://github.com/wolf-table/table
https://myliang.github.io/x-spreadsheet
MIT License
13.97k stars 1.67k forks source link

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

Open baixjian opened 4 months ago

baixjian commented 4 months ago

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