#Import error cloning project

24 messages · Page 1 of 1 (latest)

simple tusk
#

I just clonned the project, but, almost every nest import just got those import errors.

It was working yesterday when i pushed the changes, but, for some reason i went to "/common/decorators".
Is it normal?

I'm using Nest v10.0.0

ripe perch
#

this is not normal

#

can you share the project?

simple tusk
#

It's a private one at my work ://

#

Is there any other way?

#

br?

ripe perch
#

what about npm run build? does it works?

ripe perch
simple tusk
#

nem no ticket não pode?

ripe perch
#

aqui é global
A galera tem q entender tbm xD

simple tusk
#

got it

ripe perch
#

I just tested npx @nestjs/cli@latest new and it worked
So it might be something in your machine

simple tusk
#

It's a new one btw

#

A notebook

#

win 11

#

It was the module on CompileOptions

ripe perch
#

does your project's directory has the node_modules/@nestjs/common folder?

simple tusk
#

Changed it to "module": "NodeNext" and it got fixed, but. it's kinda weird it happened rn because i just worked on it yesterday

#

the last commit was also mine

simple tusk
#

Changed to commonjs again and fixed

#

well

#

Guess it fixed itself?

ripe perch
#

indeed playing with "module" from tsconfig could make it break
But I guess this is expected due to what those @nestjs/* packages works