【发布时间】:2019-01-22 20:34:05
【问题描述】:
在我的浏览器中运行 stencil start 并访问 localhost url 后出现以下错误:
Uncaught Error: Module parse failed: Unexpected token (10:9)
You may need an appropriate loader to handle this file type.
|
| var getAccount = function getAccount() {
> return import('./theme/account');
| };
|
at Object../assets/js/app.js (bootstrap:83)
at __webpack_require__ (bootstrap:19)
at bootstrap:83
at bootstrap:83
(index):1064 Uncaught TypeError: window.stencilBootstrap is not a function
at (index):1064
今天早上才开始发生这种情况,昨天我能够运行 stencil 没有任何问题。
我完全按照这里的步骤操作:
https://developer.bigcommerce.com/stencil-docs/getting-started/installing-stencil
我已尝试多次卸载 Stencil 并重新安装。我还尝试在多个不同的目录中多次使用新的基石克隆。我无法摆脱这个错误,并尝试了文档中的所有故障排除建议。终端没有错误。
我使用的是 macOS High Sierra 10.13.6
节点版本:v.6.4.0
关于我为什么会收到此错误的任何想法?
【问题讨论】:
标签: npm webpack bigcommerce