Closed its-dibo closed 3 years ago
Does ng build
pass?
yes, for both server and browser.
but whith ng deploy
, only the browser build passes.
note:
when I replace the builder @angular-builders/custom-webpack:browser
with @angular-devkit/build-angular:browser
and keep @angular-builders/custom-webpack:server
the server can be built,
build
passes in both cases
@just-jeb
Would you mind trying to use webpack.config.js
instead of ts
? I suspect it has something to do with ts-node
registration. Similar error happened when it was registered twice.
it worked with .js
, but it should work with .ts
,
it works fine with .ts
without @angular/fire:deploy
, using ng build
for both browser & server
@just-jeb
I agree. Could you provide a minimal reproduction so that I could investigate?
when setting up
ng deploy
with@angular/fire
, it cannot read the fileprojects/cms/server/webpack.config.ts
angular.json (architect part)
running
ng deploy
gives the following errorprojects/cms/server/webpack.config.ts