Git Product home page Git Product logo

Comments (6)

bryanmig avatar bryanmig commented on August 18, 2024

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.

FredrikNoren avatar FredrikNoren commented on August 18, 2024

@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.

bryanmig avatar bryanmig commented on August 18, 2024

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.

 avatar commented on August 18, 2024

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.

rluiten avatar rluiten commented on August 18, 2024

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.

wmonk avatar wmonk commented on August 18, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.