【问题标题】:Why getting The target environment doesn't support dynamic import() syntax error in react?为什么在反应中得到目标环境不支持动态 import() 语法错误?
【发布时间】:2022-06-19 14:44:13
【问题描述】:

我有一个想要在 netlify 上部署的 react 应用程序。但是我收到以下错误:

 The target environment doesn't support dynamic import() syntax so it's not possible to use external type 'module' within a script

【问题讨论】:

    标签: javascript deployment hosting netlify website-deployment


    【解决方案1】:

    你会想要找到你想要导入的内容的 npm 模块,如果 via 则包含

    import exampleJS from '@exampleJS/exampleJS';

    【讨论】:

      猜你喜欢
      • 2022-11-22
      • 2021-09-17
      • 1970-01-01
      • 2022-09-29
      • 2013-01-10
      • 1970-01-01
      • 2020-02-23
      相关资源
      最近更新 更多