angular-builders icon indicating copy to clipboard operation
angular-builders copied to clipboard

Build Warning with Angular Universal - Register ts-node again

Open jdgamble555 opened this issue 3 years ago • 7 comments

I am getting this warning with Angular Universal:

register ts-node

Trying to register ts-node again with a different tsconfig - skipping the registration.
                   tsconfig 1: C:\web projects\fireblog.io/tsconfig.server.json
                   tsconfig 2: C:\web projects\fireblog.io/tsconfig.app.json

This started once I switched over to Webpack. Here is my angular.json.

I believe it to be a bug in the compilation...

J

jdgamble555 avatar Apr 24 '22 14:04 jdgamble555

This is not reproducible locally (at least I ain't able to).

arturovt avatar Nov 23 '22 07:11 arturovt

Did you update all builders to use webpack? Did you run npm run dev:ssr with webpack like in this article?

J

jdgamble555 avatar Nov 23 '22 14:11 jdgamble555

Yes. Note that you opened an issue w/o a reproducible example but it was required:

Note: Our policy is that issues reported without a reproduction will be closed immediately and then reopened once a reproduction has been provided. Please respect the developers of this project by doing this. We give of our personal time to work on this project and would rather be spending our time fixing or enhancing the library than chasing down badly described or unreproducible issues. Please delete this note once you have read it.

arturovt avatar Nov 23 '22 15:11 arturovt

Fair enough. I will create a sample repository today after work.

Thanks,

J

jdgamble555 avatar Nov 23 '22 16:11 jdgamble555

Here is a repository that shows the current error messages by running npm run dev:ssr:

https://github.com/jdgamble555/angular-error-test

(Because you guys have not yet updated to Angular 15, this uses the last version of Angular 14).

Thanks,

J

jdgamble555 avatar Nov 23 '22 20:11 jdgamble555

I am getting the same error. Is there any information why it occurs?

dulikmixail avatar Jan 09 '23 08:01 dulikmixail

  • Make sure the versions of Angular and Custom Webpack builder are aligned.
  • Try to remove the lock file and regenerate it again by running yarn/npm install

just-jeb avatar Jan 10 '23 15:01 just-jeb