Open Vince2301 opened 5 years ago
Hello! What I did was:
node src/index.js
run with yarn. After that, the folder dist should be created.node dist/index.js
To connect to db, make sure you follow these instructions: https://docs.mongodb.com/manual/tutorial/install-mongodb-on-os-x/#install-mongodb-community-edition-on-macos if you're on Mac.
I don't know if is the correct way of doing it but it worked for me. Regards!
The dist folder is generated by running the yarn build
command.
Hey @Vince2301 , You just need to run yarn build
and then yarn start
:)
Edit nest-cli.json
{
"collection": "@nestjs/schematics",
"sourceRoot": "src",
"entryFile": "your/main/js/path"
}
In lesson 1, I get this error
There is indeed no dist folder and the package.json got this line :
"start": "node dist/index.js"
so why is it not throwing an error for you ?