我尝试使用CDN和CDN工作正常,但我想在节点模块中使用它,并尝试这样做:我在控制台中看到以下错误:
Loading module from“http://localhost:3000/js/ionicons/ionicons.esm.js” was blocked because of a disallowed MIME type
我有系统js作为node_module,但是当试图启动服务器时,我从编译js文件的第一行获得System is not defined,该文件如下所示:System.register(['http',我试图将其更改为commonjs,然后编译的js看起来要简单得多。但是,我得到了角度应用中的错误。编辑
我想我很难解释我的问题。当将模块从导入到我的server.ts文件"javascript样式“(var <
我正在创建一个具有es6模块的基本应用程序,并与节点服务器进行反应。index.html将index.js文件作为模块提供服务,但该模块未加载,并且控制台显示错误: get http://localhost:3000/index.js net::ERR_ABORTEDcodesandbox.io/embed/veriz-210fb https://github.com/st