Closed xzxzhixin closed 1 year ago
报错Uncaught (in promise) SyntaxError: Unexpected reserved word
在webpack5中是正常的,使用的rust构建命令是:wasm-pack build --target bundler
I think to use import
there it should be <script type="module">
.
reproduce project pls
I think to use
import
there it should be<script type="module">
.
这个没有用,还是一样的错误
Can't reproduce it.
![]()
Can't reproduce it.
在低版本谷歌内核中有问题,这个低版本谷歌内核是360浏览器
高版本中谷歌就没有这个问题,这个高版本是谷歌浏览器
I reviewed your screenshot and realized that it's in dev mode.
You shouldn't use a non-latest browser for dev mode. Vite doesn't support legacy / outdated browsers in dev mode. Even if you want your app to support outdated / legacy browsers, you should dev in latest browsers and test the built bundle in your target browsers.
Please test if the built bundle (with yarn vite build
) works in your outdated browser.