我一直在研究一个具有节点后端的角度项目,通常您可能大多数人都知道角度项目会转换为dist文件,该文件最终由节点服务器拾取并呈现为单个文件网页使用角度通用功能。
当突然给npm run build:ssr命令并没有创建out_tsc文件夹时,出现了问题。 (out_Tsc文件夹包含整个项目及其SEO,它告诉Google我们存在,并且当有人搜索它时,我们的网站链接会弹出。)
我真的不知道该怎么做,我也不知道。 这些是我得到的警告。
WARNING in ./node_modules/@angular/fire/firestore/firestore.js
23:21-32 "export 'SDK_VERSION' was not found in 'firebase/app'
@ ./node_modules/@angular/fire/firestore/firestore.js
@ ./node_modules/@angular/fire/firestore/public_api.js
@ ./node_modules/@angular/fire/firestore/index.js
@ ./dist/server/main.js
@ ./server.ts
WARNING in ./node_modules/@angular/fire/firestore/firestore.js
24:21-32 "export 'SDK_VERSION' was not found in 'firebase/app'
@ ./node_modules/@angular/fire/firestore/firestore.js
@ ./node_modules/@angular/fire/firestore/public_api.js
@ ./node_modules/@angular/fire/firestore/index.js
@ ./dist/server/main.js
@ ./server.ts
WARNING in ./node_modules/@angular/core/fesm5/core.js
System.import() is deprecated and will be removed soon. Useimport()instead.
For more info visit https://webpack.js.org/guides/code-splitting/
@ ./server.ts 4982:15-36 3:0-47 7:0-14
WARNING in ./node_modules/@angular/core/fesm5/core.js
System.import() is deprecated and will be removed soon. Use import()instead.
For more info visit https://webpack.js.org/guides/code-splitting/
@ ./server.ts 4994:15-102 3:0-47 7:0-14