Comments (6)
There is another issue open (#60) for converting to use at-loader
instead and that has built in support for using Babel. Before I learned about this CRA fork, I was using it successfully in an ejected CRA with a setup that sounds like what youre looking for.
See description at https://github.com/s-panferov/awesome-typescript-loader
from create-react-app-typescript.
@bryanmig will this also fix jest test js importing? I think I'm running into this issue right now, when requiring a .js
file with a .d.ts
declaration in jest test I just get the name of file back. I.e. import * as X from './x'
X is now just "x.js"
.
from create-react-app-typescript.
I'm sorry - I dont recall having that same problem so I'm not sure if it will be resolved.
from create-react-app-typescript.
Even though createing a custom build config would solve my issue, it might be a nice implementation in create-react-app-typescript :-) ?
from create-react-app-typescript.
I have a generated peg.js parser I want to use in a parser.js file.
I imported it into one of my components and it appears to import fine and lets me run it in my browser in dev mode.
I then added a test spec for it so I could setup a few test cases for the parser and find that no matter what I do cant get more the name of the module "parser.js" as the result of import parser = require('./parser.js');
Is there anything I can do that might let me get tests going ?
Its been a while since I've worked much with typescript and I am still quite new to CRA so not sure I can contribute much to actually work on create-react-app-typescript itself to help address the behavior I am seeing.
from create-react-app-typescript.
As this hasn't been updated for a while, I am closing this issue. Please re-open if we have an update.
from create-react-app-typescript.
Related Issues (20)
- Browserlist error
- CRA 2.0 HOT 31
- Include nodejs v8 for for Travis CI build
- Remove dependency on babel HOT 2
- Using jest-extended? HOT 1
- Husky hooks not working HOT 1
- Update webpack-dev-server HOT 10
- Add documentation detailing differences between CRA 2.0 and CRA-TS HOT 10
- Source Maps don't work for `js` or `jsx` files in live dev mode.
- Version 4.0.8: Internet Explorer no working anymore HOT 2
- Build process is almost 20 minutes long HOT 1
- postcss support? HOT 1
- Why is Jest's version hard coded to "20.0.4"? HOT 1
- Jest doesn't work when I add lint-staged
- Maintenance
- Tslint rules are barriers to entry HOT 2
- [Help] Compatibility IE + Firefox old versions problems
- Are 4.X.X versions are legit? HOT 1
- Jest doesn't resolve absolute paths from tsconfig HOT 1
- npm start dont work on freeBSD
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 create-react-app-typescript.