Comments (8)
I'd suggest clearing your node modules and reinstalling - btw you didn't share your plugin setup..
from fork-ts-checker-webpack-plugin.
@johnnyreilly Thanks, it helped!
from fork-ts-checker-webpack-plugin.
Unfortunately i was wrong. Error just didn't appear until i resolve webpack errors. Plugin configuration is default - just new ForkTsCheckerWebpackPlugin()
. Maybe there's some dependency that probably may be the reason?
EDIT: Error starts with [email protected], 2.3.2 doesn't show this error.
from fork-ts-checker-webpack-plugin.
According to this (function logErrors
) diagnostic.file
can be nil.
Wrapping code inside NormalizedMessage.createFromDiagnostic
in if (diagnostic.file)
and printing diagnostic i've got in console:
66% building modules 862/921 modules 59 active ...ct\lib\ReactTransitionChildMapping.js###DIAG { file: undefined,
start: undefined,
length: undefined,
messageText: 'Cannot find global value \'Promise\'.',
category: 1,
code: 2468 }
95% emittingERROR in undefined(undefined,undefined):
TS2468: Cannot find global value 'Promise'.
So maybe reading diagnostic.file
attributes should be wrapped in if (diagnostic.file)
?
from fork-ts-checker-webpack-plugin.
Thanks for digging into this @nidu. You're seeing:
TS2468: Cannot find global value 'Promise'.
Are you running in a super old version of node?
It would be useful if you could provide a minimal reproduction of the issue; it's hard to know if this is a configuration problem or a bug with fork-ts-checker-webpack-plugin.
from fork-ts-checker-webpack-plugin.
@johnnyreilly environment is as following:
Windows 7x64
webpack 3.10.0
node 6.11.0
npm 3.10.7
typescript 2.6.2
fork-ts-checker-webpack-plugin 0.2.9
ts-loader 3.2.0
I resolved the error by adding es6-promise
to the project so this particular error was mine. But at the same time i think checker should print error and errors like this can occur. Moreover according to example from my link above diagnostic.file
can be undefined so i suppose nil check is worth adding.
from fork-ts-checker-webpack-plugin.
Yeah that sounds reasonable. If you get a chance to submit a PR I'm sure @piotr-oles would be appreciative
from fork-ts-checker-webpack-plugin.
PR merged, will be released as v0.2.10 :)
from fork-ts-checker-webpack-plugin.
Related Issues (20)
- Configuration has an unknown property 'resolveTypeReferenceDirectiveModule'. HOT 1
- Incremental mode is not working in webpack devServer
- Solution Builder should set reportDiagnostic on build mode
- error: debug failure. false expression HOT 3
- Update `minimatch` to Latest and Update Import
- Uncaught Exception in yaml - A dependency update is required for `cosmiconfig`
- Use specific lerna module tsconfig on type checking HOT 2
- Emitted files should be added as assets to the compilation HOT 5
- Getting ERROR in compiler.getInfrastructureLogger is not a function HOT 2
- Issues when importing plugin in TypeScript (`index.d.ts` vs `plugin.d.ts`)
- TypeError: config.logger.log is not a function HOT 3
- extends should be an array in typescript 5.0 HOT 2
- Github Actions module 'Ajv' not found HOT 1
- overlay: false not working HOT 1
- Does it respect @ts-nocheck ? HOT 1
- Performance loss between latest and v6.5.3
- class IssueWebpackError extends webpack_1.default.WebpackError when run webpack build
- Type check is slow in incremental mode on watch mode's subsequent runs (not on the first run).
- Fork-ts-checker >= 6 hangs on windows
- `TypeError: Cannot set property mark of #<Object> which has only a getter` HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fork-ts-checker-webpack-plugin.