#Problems with SWC on a monorepo app

12 messages · Page 1 of 1 (latest)

fair wave
#

i have a monorepo application with swc. When I start any app I receive this error messages:

what could be the cause of this? when running the application with normal webpack I dont get this kind of problem, only with SWC.

vocal atlas
#

It's usually an issue with the path setup. SWC needs special setup in terms of the paths. Also, when you say "monorepo application", do you mean Nest CLI's monorepo mode?

fair wave
#

yes, I have the apps folder with all my apps inside, as you can see here

vocal atlas
#

Ok. Just wanted to be sure. I'd also suggest not using it, but it looks like you are deep into it. The monorepo mode was made many moons ago, before real monorepo managers became a more well-known thing. You'll find Nest CLI's monorepo mode very inhibiting in the end.

fair wave
#

when running with the default webpack there are no problems at all. the application runs fine.

fair wave
#

still thanks for the advice I will not use it on my future projects

vocal atlas
#

Play with the paths setting.

fair wave
#

i will try it, do you need to see any file to help you understand my problem?

vocal atlas
#

I know I ran into this issue with SWC and it was the paths not being quite right. I don't remember what I changed though.

#

You'll need to figure this one out yourself. 🤷🏻‍♂️

fair wave
#

okay, I will come back if I figure it out. thanks for helping me where to start