Comments (7)
I narrowed this down a little bit. The first problem I found was that my txconfig.json file was not being parsed until after the compiler had been determined using the query parameters to the 'loader' option in the webpack.config.js. So it was still using the original typescript instead of ntypescript. I changed it to loader: 'awesome-typescript-loader?compiler=ntypescript&jsx=react&module=commonjs'
and things progressed a little further.
Now my problem is that I get the following error: Error: no output found for C:\MyProject\Reactor\Reactor\app\components\uitest.tsx
It seems this is happening because findResultFor
in helpers doesn't have any way of accounting for tsx files.
from awesome-typescript-loader.
@mikemorton I'll look at this problem tomorrow morning (GMT+3)
from awesome-typescript-loader.
@mikemorton JSX support was published as v0.6.0. Please look at the example.
Also note that there is a bug with source-maps right now, I've sent the PR to the babel-loader to fix it.
from awesome-typescript-loader.
Awesome, thanks. I'll give this a test later day!
from awesome-typescript-loader.
@mikemorton ping
from awesome-typescript-loader.
Sorry, I didn't get a chance to try it out yesterday but I hope to again today...
from awesome-typescript-loader.
@mikemorton I've tested this enough in my company to say that is works. So I close this. Feel free to reopen the issue if you find some troubles.
from awesome-typescript-loader.
Related Issues (20)
- Module build failed: Error: Final loader
- Strange characters in logging output
- Duplicated type-checking of shared files in client and server bundles
- TypeScript 3.4 --incremental support HOT 3
- Option configFileContent cannot set target, jsx
- how to use with Metro Bundler?
- Errors not printed in CI environment
- Slowdown with [email protected] HOT 2
- error width webpack4 HOT 1
- 'Cannot find module' when compile from node_modules
- How to make the compiled decorator code not different from typescript and babel?
- Dependencies (micromatch) Security Vulnerabilities HOT 1
- Npm install breaks - JSDoc types can only be used inside documentation comments.
- TS1056: Accessors are only available when targeting ECMAScript 5 and higher.
- incompatibility with pnpm HOT 2
- Watch for changes in *.json files
- "events" module breaks awesome-typescript-loader
- Importing TypeScript files from node_modules causes errors
- Unclear to which lines error refers HOT 1
- FYI: performance up to x4 after switching to ts-loader
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 awesome-typescript-loader.