opentiny/tiny-engine

🐛 [Bug]: 工具类utils使用npm引入

Closed this issue · 11 comments

Environment

'5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36'

Version

v16.14.0

Version

最近

Link to minimal reproduction

没有

Step to reproduce

1711462095483
9H WQIBVNRQD)FV%OQ9HHGO
32DSV7`4@8O@6X3 @RWBCOR
npm包上传上传成功,按照文档上npm引入就报找不到模块。用vue的项目npm install 导入正常没有问题

What is expected

在工具类中使用npm引入的方法

What is actually happening

找不到模块

Any additional comments (optional)

No response

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


Title: 🐛 [Bug]: Tool class utils is introduced using npm

导入npm包时要填写cdn, 你这个包必须要用cdn访问到。这样在预览时有能用cdn引用到你这个包。

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


When importing an npm package, you must fill in the cdn. Your package must be accessed using the cdn.

image
image
image
还是不大行

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


image
image
image
还是不大行

cdn可以不用加版本号, 启用解构, 导出名称为 request 再试看看

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


You can use cdn without adding a version number, enable deconstruction, and export the name as request. Try again.

还是不行,一样的报错

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


Still not working, same error message

已经解决了,加了个https的协议

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


Already solved, added an https protocol