Skip to content

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

@baixjian

Description

@baixjian

/node_modules/.pnpm/[email protected]/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/[email protected]_patch_hash=zgkmsd45mb2smijr3bwgeexi4e
@algolia[email protected]
@ty_lpkmxbmlvam7y4xfkv4z7qccka/node_modules/vitepress/dist/node/serve-qpgewBA8.js:52991:24)
 ELIFECYCLE  Command failed with exit code 1.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions