Answer the question
In order to leave comments, you need to log in
How to fix TypeScript compilation error?
For a long time I did not study ts and for a long time I forgot what and where. Now it is necessary to return to my old craft... When assembling the project, everything is clearly assembled - no problems, but if you run npm test
it for some reason, it gives out this:
TSError: ⨯ Unable to compile TypeScript:
src/plugin/modules/model.ts:7:13 - error TS2304: Cannot find name 'Settings'.
settings: Settings = {
npm test
executes the following commands:[email protected] test /Users/nikita/Desktop/работа/FSD-plugin
mocha -r ts-node/register src/plugin/tests/*.ts
src/plugin/@types
and during normal assembly everything is OK, but the tests do not work. It seems to me that the problem is that when compiling @types is taken into account, but not when testing. I'm clearly missing something, and the obvious, but I don't understand what. Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question