-
Notifications
You must be signed in to change notification settings - Fork 492
Fails to recompile with custom tslint rules #250
Comments
I am getting the same:
|
I'm having the same issue with my custom tslint file. The only rule that triggers the bug for me is this one:
Removing that line makes everything else work as expected, even without setting the severity to |
Upgraded from 2.8.0 to 2.13.0 and facing the same error. Tried adding baseUrl: "" to tsconfig.json but that didn't help. Environment |
I added |
Same errror too. For weird reasons, removing the |
I added Then the terminal outputs:
|
Adding |
|
Experiencing the same issue: initial compile works fine. CSS hot loads cause "Failed to compile" ("Can't find module" reported in index.tsx); TS hot loads work fine. [email protected] Removing |
Nice catch with the Initial compile worked fine, file changes in |
My problem is the initial compile fails, it reports some false positive errors, once re-save the file with "errors", the re-compile works fine |
report: remove 'no-unused-variable' rule, everything works normal |
I had the same issue with https://github.com/manuelbieh/Geolib I tried switching to using |
@runeh How in the world did you figure out that |
It's either something wrong with my
tslint.json
(which used to work before I upgraded many packages) or it's a bug.Is this a bug report?
Yes
Can you also reproduce the problem with npm 4.x?
Yes
Which terms did you search for in User Guide?
(Write your answer here if relevant.)
Environment
npm ls react-scripts-ts
(if you haven’t ejected): 2.13.0node -v
: v8.9.4npm -v
: 5.6.0yarn --version
(if you use Yarn): 1.3.2npm ls react-scripts-ts
(if you haven’t ejected): 2.13.0Then, specify:
Steps to Reproduce
I tried to reproduce this with blank project, but was unable to do so. Here is what's going on in my project:
I have custom
tslint.json
file:and in
devDependencies
i haveExpected Behavior
I run
yarn start
, the project compiles. Then I add newline to some .ts file, project recompiles without errors.Actual Behavior
Here is the output of
yarn start > log.txt
:The project compiles and starts at first, but any change leads to recompile failure.
However, if I change content of
tslint.json
to default that comes withcreate-react-app-typescript
and add"defaultSeverity": "warning"
, everything compiles and recompiles just fine.Reproducible Demo
(Paste the link to an example project and exact instructions to reproduce the issue.)
The text was updated successfully, but these errors were encountered: