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

fes-template-vite pnpm dev报SyntaxError: Unexpected token 'export' #210

Open
ArtisanQ opened this issue Sep 5, 2023 · 3 comments
Open

Comments

@ArtisanQ
Copy link

ArtisanQ commented Sep 5, 2023

fes dev

Unexpected token 'export'
C:\Users\cq\Desktop\fes.js-master\fes.js-master\packages\fes\lib\index.js:1
export * from '@@/core/coreExports';
^^^^^^

SyntaxError: Unexpected token 'export'
at Object.compileFunction (node:vm:352:18)
at wrapSafe (node:internal/modules/cjs/loader:1031:15)
at Module._compile (node:internal/modules/cjs/loader:1065:27)
at Module._compile (C:\Users\cq\Desktop\fes.js-master\fes.js-master\node_modules.pnpm\[email protected]\node_modules\pirates\lib\index.js:136:24)
at Module._extensions..js (node:internal/modules/cjs/loader:1153:10)
at newLoader (C:\Users\cq\Desktop\fes.js-master\fes.js-master\node_modules.pnpm\[email protected]\node_modules\pirates\lib\index.js:141:7)
at Object.newLoader [as .js] (C:\Users\cq\Desktop\fes.js-master\fes.js-master\node_modules.pnpm\[email protected]\node_modules\pirates\lib\index.js:141:7)
at Module.load (node:internal/modules/cjs/loader:981:32)
at Function.Module._load (node:internal/modules/cjs/loader:822:12)
at Module.require (node:internal/modules/cjs/loader:1005:19)

@wanchun
Copy link
Collaborator

wanchun commented Sep 12, 2023

这样看不出问题,可以把demo上传到git,然后发来git地址

@neostfox
Copy link
Contributor

npm run bootstarp 之后,cd packages/fes-template-vite 执行pnpm run dev,就会报上述错误。 windows x64

@neostfox
Copy link
Contributor

已于 PR #232 修复。目标平台 windows 的 sep 和 类 Unix 平台的 sep不一致导致

winixt pushed a commit that referenced this issue Feb 21, 2024
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

3 participants