Closed thatkookooguy closed 4 years ago
don't know what happened, but it looks fine now
I have same problem when I deploy my app with dokku. These versions are same with my local.
Typescript v3.7.3 Npm v6.12.1 Node v12.13.1
I found a solution but I think it is'nt a good solution. I need a real fix.
Open file tsconfig.json
and add this line:
{
compilerOptions: {
"skipLibCheck": true
}
}
Updating TypeScript fixes this issue. skipLibCheck: true
is fine as well
Bug Report
Current behavior
When I run
nest build
, I get Errors for either incorrect things or things in node_modulesBut when I run
npm run start:dev
, everything works and the application runsInput Code
Repo: https://github.com/Kibibit/achievibit/tree/next
Notice that the code in question is in the next branch
Reproduce steps:
npm run start:dev
nest build
Some suspects:
paths
field intsconfig.json
to create shortcuts for paths in my application might be something with resolving paths in the destination files?npx tsc --build ./tsconfig.build.json
, the build itself passes, but I can't run the application as well.Here's the output when running
nest build
:All of them excepts the last one are from
node_modules
. The last one says thatrequired
does not exist in typeApiPropertyOptions
, even though it clearly does exist there :-)When looking at the decorator's declaration files, you can see that
ApiPropertyOptions
also uses theOmit
utility type, so it might be related?Expected behavior
nest build
should build with no false errorsPossible Solution
Possibly a version I need to update or some configuration param that I need to set :-)
Pretty sure it's related to the
Omit
type which makes me think it's related to the typescript version, but looks like the version is pretty up-to-date (latest = 3.7.3, installed = 3.6.3)Environment