【问题标题】:BigCommerce Stencil Start Uncaught Error: Module parse failedBigCommerce Stencil 启动未捕获错误:模块解析失败
【发布时间】: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


    【解决方案1】:

    这是我们在 Cornerstone 3.1 版本中的一个问题,可以通过 GitHub 下载,但尚未推出生产。我们有一张工程票来解决它,但与此同时,您可以回滚到Cornerstone 3.0 版本以绕过错误。给您添麻烦了!

    【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2016-11-29
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-08-03
    相关资源
    最近更新 更多