Coder Social home page Coder Social logo

Comments (16)

jacksteamdev avatar jacksteamdev commented on August 15, 2024 1

@shellscape This still a relevant problem!

That extended tsconfigs are not supported should be documented or fixed.

Thanks for all your hard work!

from plugins.

NotWoods avatar NotWoods commented on August 15, 2024 1

I'm going to reopen the issue and try to solve the failing use cases described here.

from plugins.

Tylerian avatar Tylerian commented on August 15, 2024

I also had this same problem but I went further and had a peek into the source code of the plugin and found that it only imports the compilerOptions object from the tsconfig.json file.

There isn't any easy workaround for this issue because TypeScript Compiler API only takes compilerOptions as an argument for their transpilation functions as shown in their official docs.

If I were one of the core maintainers of this plugin I would consider changing the tsconfig property name to compilerOptions as it better describes what it really does. WDYT @Victorystick?

from plugins.

shellscape avatar shellscape commented on August 15, 2024

Hey folks (this is a canned reply, but we mean it!). Thanks to everyone who participated in this issue. We're getting ready to move this plugin to a new home at https://github.com/rollup/plugins, and we have to do some spring cleaning of the issues to make that happen. We're going to close this one, but it doesn't mean that it's not still valid. We've got some time yet before the move while we resolve pending Pull Requests, so if this issue is still relevant, please @ me and I'll make sure it gets transferred to the new repo. 🍺

from plugins.

shellscape avatar shellscape commented on August 15, 2024

This should be fixed by rollup/rollup-plugin-typescript#153, please let us know if it's not.

from plugins.

cortopy avatar cortopy commented on August 15, 2024

@shellscape I don't think it's fixed. I'm getting

@rollup/plugin-typescript: Couldn't process compiler options

when using extends: 'my-package where 'my-package' is a module in my monorepo

from plugins.

shellscape avatar shellscape commented on August 15, 2024

@NotWoods any thoughts?

from plugins.

meteorlxy avatar meteorlxy commented on August 15, 2024

Uh I have a look at rollup/rollup-plugin-typescript#153, seems that it does not solve muti-level extends?

from plugins.

slavafomin avatar slavafomin commented on August 15, 2024

I can confirm that the issue is still present. @NotWoods @shellscape do you have any progress with this? Maybe there is a way to use TypeScript compiler API to actually process the config as tsc does?

from plugins.

NotWoods avatar NotWoods commented on August 15, 2024

Could you provide a REPL link with an example of what's failing? We are using the compiler APIs Typescript provides already. The upcoming 4.0.0 version should fix some more issues too.

from plugins.

slavafomin avatar slavafomin commented on August 15, 2024

Well, as others mentioned, I have a very simple setup with two tsconfig.json files, where one file is extending the other one. However, the compiler options are loaded only from the specified file. Options in the base config are getting totally ignored.

Are you using TypeScript compiler to load the config or are you loading it yourselves? I've tried to find a code that is responsible for loading tsconfig.json in tsc yesterday, but failed to do so due to the complexity and the size of the codebase. Could you please point me in the right direction if you are familiar with the codebase?

from plugins.

NotWoods avatar NotWoods commented on August 15, 2024

The examples in this issue all work now, so I would really appreciate the exact configuration you're using that doesn't work. I can't point to an exact location in the Typescript repo but we use the APIs provided by Typescript for parsing the configuration.

from plugins.

slavafomin avatar slavafomin commented on August 15, 2024

I would have been glad to assist with this issue further, but we have had to switch to the rollup-plugin-typescript2 due to the lack of some critical features in this plugin. Sorry about that… 😢

However, if this helps in resolving this bug: config inheritance started to work correctly when I switched plugins.

from plugins.

NotWoods avatar NotWoods commented on August 15, 2024

Fixed in version 4.0.0 of the typescript plugin

from plugins.

developer239 avatar developer239 commented on August 15, 2024

@NotWoods Still not working 🙂rollup-plugin-typescript2 works fine.

from plugins.

bleucitron avatar bleucitron commented on August 15, 2024

I'm getting a similar issue with version 5.0.2: Couldn't process compiler options. I had to switch to rollup-plugin-typescript2 to solve the issue :/

from plugins.

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.