Giter Site home page Giter Site logo

Comments (6)

raouldeheer avatar raouldeheer commented on May 27, 2024 3

"All module imports with non-relative names are assumed to be relative to the baseUrl." -typescript handbook
This is why base-url is enabled by default.

from tsc-alias.

raouldeheer avatar raouldeheer commented on May 27, 2024 2

The name of BaseUrl has been changed to base-url all lowercase.

from tsc-alias.

justkey007 avatar justkey007 commented on May 27, 2024 1

@pp0rtal please replace BaseUrl with base-url.

from tsc-alias.

raouldeheer avatar raouldeheer commented on May 27, 2024

Try this config: #79 (comment)

from tsc-alias.

pp0rtal avatar pp0rtal commented on May 27, 2024

@raouldeheer Thanks for your quick answer!

I tried to add tsc-alias config in my tsconfig.json as following

{
    "compilerOptions": {
        "baseUrl": ".",  // If I understand this is the problem source, and yes my project files are in root fs :/
         ...
    },
    ....
    "ts-node": {}, // I've got some ts-node config working for instance
    "tsc-alias": {
        "replacers": {
            "BaseUrl": {
                "enabled": false
            }
        }
    }

But I still have the same issue

from tsc-alias.

pp0rtal avatar pp0rtal commented on May 27, 2024

@raouldeheer cc @justkey007 Works perfectly know! 😄
And I see you fixed the original solution perfect 👍
I'm closing ticket then.


Just by curiosity
I'm surprised this behavior is the default, what is the use-case of this?
Shouldn't be base-url default to false, and activated for edge cases?

from tsc-alias.

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.