GithubHelp home page GithubHelp logo

Comments (5)

yslpn avatar yslpn commented on June 2, 2024 2

Same error. I have a monorepository. In one package, I import variables from another:

@use '@{MyPackageName}/variables';

for such files I get type {}

from typescript-plugin-css-modules.

Jahrhause avatar Jahrhause commented on June 2, 2024 1

I am also experiencing this issue :(

from typescript-plugin-css-modules.

KODerFunk avatar KODerFunk commented on June 2, 2024

Try "rendererOptions": { "sass": { "loadPaths": ["./"] }. I also use Next.js, and spent a lot of time choosing the right settings.

from typescript-plugin-css-modules.

Morten-dev avatar Morten-dev commented on June 2, 2024

Try "rendererOptions": { "sass": { "loadPaths": ["./"] }. I also use Next.js, and spent a lot of time choosing the right settings.

Unfortunately this did not fix the issue, but thank you for the response

from typescript-plugin-css-modules.

mrmckeb avatar mrmckeb commented on June 2, 2024

Hi all, very sorry for the slow reply.

This plugin also supports additionalData.
https://github.com/mrmckeb/typescript-plugin-css-modules#options

Using that solves the issue in the Code Sandbox example provided:
https://codesandbox.io/p/sandbox/broken-moon-gy6myz?file=%2Ftsconfig.json%3A24%2C15-24%2C72

Unfortunately there's no way for this plugin to know what you've configured for other tools - you could be using Next.js, CRA, custom, etc - so you need to provide the same options.

from typescript-plugin-css-modules.

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.