我正在尝试在项目中使用以下可缩放画布。 https://www.npmjs.com/package/@durwella/zoomable-canvas
我刚刚安装了CLI。 我已经按照说明安装了组件。我不得不将package.json更改为
"private": true,
使其安装。
我必须安装rxjs-compat才能解决此错误:
“Module not found: Error: Can't resolve 'rxjs/Observable'”
有效。但是现在我上菜时会得到以下输出:
** Angular Live Development Server is listening on localhost:4200, open your browser on http://localhost:4200/ **
u Date: 2019-04-03T09:33:59.480Z
Hash: d2ac8e346cac4ef17eb2
Time: 8710ms
chunk {es2015-polyfills} es2015-polyfills.js, es2015-polyfills.js.map (es2015-polyfills) 284 kB [initial] [rendered]
chunk {main} main.js, main.js.map (main) 13.2 kB [initial] [rendered]
chunk {polyfills} polyfills.js, polyfills.js.map (polyfills) 236 kB [initial] [rendered]
chunk {runtime} runtime.js, runtime.js.map (runtime) 6.08 kB [entry] [rendered]
chunk {styles} styles.js, styles.js.map (styles) 16.3 kB [initial] [rendered]
chunk {vendor} vendor.js, vendor.js.map (vendor) 5.34 MB [initial] [rendered]
WARNING in ../node_modules/@angular/core/@angular/core.es5.js 5659:15-36
Critical dependency: the request of a dependency is an expression
WARNING in ../node_modules/@angular/core/@angular/core.es5.js 5675:15-102
Critical dependency: the request of a dependency is an expression
ℹ 「wdm」: Compiled with warnings.
到目前为止,我了解到的是我应该在以下文件中更改一小段代码:
webpack.config.js
但是我也读过的是,这个文件不再以角度显示。 我试图找到它,但在任何地方都找不到它。
有人知道如何解决此错误消息吗? 在组件使用说明中,我遵循了所有内容。 该项目只加载一行空白页面:
Cannot GET /