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

运行打包报错 #68

Open
5 of 7 tasks
tianguoyuan opened this issue Nov 22, 2024 · 1 comment
Open
5 of 7 tasks

运行打包报错 #68

tianguoyuan opened this issue Nov 22, 2024 · 1 comment

Comments

@tianguoyuan
Copy link

描述问题

  1. 正在编译中...
    (node:361031) Warning: To load an ES module, set "type": "module" in the package.json or use the .mjs extension.
    (Use node --trace-warnings ... to show where the warning was created)
    (node:361031) Warning: To load an ES module, set "type": "module" in the package.json or use the .mjs extension.
    DONE Build complete.

package.json -> add "type":"module"

  1. 正在编译中...
    failed to load config from /home/tian/code/uniapp/vitesse-uni-app/vite.config.ts
    TypeError: Uni is not a function

复现

下载运行

系统信息

ubuntu22.04

使用的包管理器

pnpm

核对

贡献

  • 我愿意提交一个 PR 修复这个问题
  • 我愿意提交一个 PR 带有失败的测试(实际上只要去做就好,谢谢!)
@tianguoyuan
Copy link
Author

node v20.9.0
npm 10.1.0
pnpm 9.7.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