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

puerts 升级到2.1.0(因为webgl的库升级了),导致ts-loader有问题。 #15

Open
Yuki001 opened this issue Dec 12, 2024 · 2 comments

Comments

@Yuki001
Copy link

Yuki001 commented Dec 12, 2024

引擎:团结 1.3.4

ts-loader: 2.0.5
puerts: 2.1.0

使用Sample1 工程,出现:

Exception: undefined:0: Error: c# exception:undefined:0: ReferenceError: require is not defined
ReferenceError: require is not defined
at Object.239 (puerts\ts-loader\main.gen.mjs:184824:1)
at webpack_require (puerts\ts-loader\main.gen.mjs:184876:41)
at Object.86 (puerts\ts-loader\main.gen.mjs:3427:11)
at webpack_require (puerts\ts-loader\main.gen.mjs:184876:41)
at puerts\ts-loader\main.gen.mjs:185021:12
at puerts\ts-loader\main.gen.mjs:185109:3,

如果 puerts 是 2.0.5 则正常。

@Yuki001
Copy link
Author

Yuki001 commented Dec 12, 2024

所以说现在所有的puerts相关的包应该都用2.0.5版本的才对。

@chexiongsheng
Copy link

估计你得用nodejs版本的puerts。
以前open upm上默认发nodejs版本,但这其实不太合适,nodejs对游戏业务来说太大了。
现在默认是发v8

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

2 participants