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 Report] popperjs 导致nuxt2.14.1版本编译失败 #7626
Comments
请问解决了吗?我也遇到这个问题 |
No, I rolled back a version |
怎么回退的呢?回退vant的版本吗?我是npm下载依赖能用,cnpm下载依赖默认就是下载的是vant11版本,packjson中是2.8.1,但是cnpm下载下来的是11版本的 |
您方便说一下您的操作步骤吗?谢谢! |
@MxH330 你packjson里面用的是^这种方式把,直接不要加任何符号 使用 ~2.10.4 或者 直接使用2.10.4 类似 vant": "~2.10.4 |
@MxH330 已经下载下来的最新版本,最好清除一下文件 重新install |
嗯嗯,好的, 非常感谢! |
弄好了,可以发版了,非常感谢!!! |
@MxH330 不客气,我也是昨天发预发环境出问题了 |
下个版本会修复 |
一开始我也跟楼上一样降低了一个版本 |
已在 2.11.1 版本修复 |
设备 / 浏览器
chrome
Vant 版本
2.11.0
Vue 版本
2.6.12
重现链接
https://codepen.io/
描述问题
ERROR Cannot use import statement outside a module
(function (exports, require, module, __filename, __dirname) { import { popperGenerator, detectOverflow } from "./createPopper.js";
^^^^^^
SyntaxError: Cannot use import statement outside a module
at new Script (vm.js:88:7)
at createScript (vm.js:263:10)
at Object.runInThisContext (vm.js:311:10)
at wrapSafe (internal/modules/cjs/loader.js:1041:15)
at Module._compile (internal/modules/cjs/loader.js:1102:27)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1158:10)
at Module.load (internal/modules/cjs/loader.js:986:32)
at Function.Module._load (internal/modules/cjs/loader.js:879:14)
at Module.require (internal/modules/cjs/loader.js:1026:19)
at require (internal/modules/cjs/helpers.js:72:18)
The text was updated successfully, but these errors were encountered: