streamich / nano-css

Distilled CSS-in-JS for gourmet developers
The Unlicense
430 stars 24 forks source link

[TS] Bug. When I used package version 5.3.0 #245

Open s-kobets opened 4 years ago

s-kobets commented 4 years ago

Module '../addon/rule' has already exported a member named 'addon'. Consider explicitly re-exporting to resolve the ambiguity.

Maybe reason - https://github.com/streamich/nano-css/commit/23a1adeeb8f436b108644ee9fb1b2c83dc2265b4

anatoliyarkhipov commented 3 years ago

@s-kobets Have you found a workaround (besides downgrading)? 🤔

s-kobets commented 3 years ago

🤔 Today, I don't see problem with this problem. Sorry, I will close issue.

anatoliyarkhipov commented 3 years ago

Hm. Is there a chance you can share your TS config? I just updated to 5.3.0 today, after sitting on an old version for a long time, and encountered this very problem. So the issue is still relevant, I believe.

s-kobets commented 3 years ago

My tsconfig.json

{
  "compilerOptions": {
    "module": "es2015",
    "target": "esnext",
    "lib": ["dom", "es6", "es7"],
    "jsx": "react",
    "declaration": true,
    "esModuleInterop": true,
    "skipLibCheck": true,
    "strict": false,
    "noEmit": false,
    "sourceMap": true,
    "importHelpers": false,
    "noEmitHelpers": true,
    "moduleResolution": "node",
    "experimentalDecorators": true,
    "resolveJsonModule": true,
    "typeRoots": ["node_modules/@types"],
    "plugins": [{ "name": "typescript-workspace-plugin" }]
  },
  "exclude": ["node_modules"]
}