Giter VIP home page Giter VIP logo

Comments (10)

evanw avatar evanw commented on June 16, 2024 3

You cannot use the tsx loader for *.ts files. I'm guessing that you can just remove the incorrect configuration value to fix your problem:

 module: {
   rules: [
     {
       test: /\.[tj]sx?$/,
       loader: 'esbuild-loader',
       options: {
         target: 'es2015',
-        loader: 'tsx', // Or 'ts' if you don't need tsx
         target: 'es2018',
         jsx: 'automatic',
       },
     },
   ],
 },

from esbuild-loader.

privatenumber avatar privatenumber commented on June 16, 2024

I can't help you with how little information you've provided.

Closing until a minimal reproduction is provided.

from esbuild-loader.

dryzhkov avatar dryzhkov commented on June 16, 2024

Do you mind telling me what additional information your require to repro this?

from esbuild-loader.

privatenumber avatar privatenumber commented on June 16, 2024

Link to a repository with only the relevant files. The reproduction should be minimal.

I should be able to see the error in my console when I run npm start.

Tip: Look at it from my point of view. If you're solicited help from a stranger online (zero context), what information would you need?

from esbuild-loader.

dryzhkov avatar dryzhkov commented on June 16, 2024

Tip: if you want people to submit bugs with more context consider providing a boilerplate repo to save them time.

BTW, the bug report does contain context. I provided you with exact package versions of all necessary dependencies and source code that causes the issue. As well as the steps that I have taken.

from esbuild-loader.

privatenumber avatar privatenumber commented on June 16, 2024

I already did, it's in the bug report template. There's also https://github.com/privatenumber/esbuild-loader-examples

Sorry but no one is going to spend time setting that up only to find that there's no bug and it's a mistake in your config. If you want free help from strangers, you'll have to put in a lot more work.

from esbuild-loader.

dryzhkov avatar dryzhkov commented on June 16, 2024

Here is a repro

from esbuild-loader.

privatenumber avatar privatenumber commented on June 16, 2024

Thanks for the reproduction. But yeah, looks like a bug in your configuration; check out the migration guide. You also have a syntax error.

from esbuild-loader.

dryzhkov avatar dryzhkov commented on June 16, 2024

Can you be a little bit more specific what is the configuration bug?

from esbuild-loader.

privatenumber avatar privatenumber commented on June 16, 2024

I've updated the migration guide to make that clearer.

from esbuild-loader.

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.