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

🐛 [Bug]: 下载代码时,提示错误 Cannot find module ... has a valid "main" entry #30

Closed
cyberkingkong opened this issue Oct 16, 2023 · 4 comments
Labels
bug Something isn't working

Comments

@cyberkingkong
Copy link

Environment

ms-edge

Version

v20.2.0

Version

3.10.1

Link to minimal reproduction

Cannot find module 'D:\opentiny\tiny-engine\mockServer\node_modules@opentiny\tiny-engine-dsl-vue\dist\tiny-engine-dsl-vue.cjs.js'. Please verify that the package.json has a valid "main" entry

Step to reproduce

pnpm dev
运行后,生产代码,然后单击“下载”按钮,右侧出现弹窗,内容为: Cannot find module 'D:\wwwroot\opentiny\tiny-engine\mockServer\node_modules@opentiny\tiny-engine-dsl-vue\dist\tiny-engine-dsl-vue.cjs.js'. Please verify that the package.json has a valid "main" entry

What is expected

No response

What is actually happening

No response

Any additional comments (optional)

No response

@wenmine wenmine added the bug Something isn't working label Oct 16, 2023
@wenmine
Copy link
Collaborator

wenmine commented Oct 16, 2023

@cyberkingkong hi,麻烦您进入到vue-generator的文件夹中,执行一下 npm run build,然后重新启动项目试试

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


@cyberkingkong hi, please go to the vue-generator folder, execute npm run build, and then try restarting the project.

@cyberkingkong
Copy link
Author

成功了,谢谢。

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


It worked, thank you.

GaoNeng-wWw added a commit to GaoNeng-wWw/tiny-engine that referenced this issue Apr 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants