jsr icon indicating copy to clipboard operation
jsr copied to clipboard

side effect imports with unknown module kinds like css

Open RichieMillennium opened this issue 1 year ago • 5 comments

My ts file includes this side effect import that imports the css associated with the exported component:

import './style.css';

When I try to run npx jsr publish I get this error pointing at that import:

error: Expected a JavaScript or TypeScript module, but identified a Unknown module. Importing these types of modules is currently not supported.

Shouldn't jsr just ignore side effect imports like that instead of causing an error?

RichieMillennium avatar May 01 '24 20:05 RichieMillennium

Getting the same issue. Any luck?

kkx64 avatar May 29 '24 18:05 kkx64

+1

ejirocodes avatar Jun 23 '24 05:06 ejirocodes

Any update on this?

ebreness avatar Aug 13 '24 22:08 ebreness

Same issue. Wanted to publish react/vue/svelte component libraries. Looks like jsr only support pure js/ts lib.

HuakunShen avatar Aug 20 '24 21:08 HuakunShen

anything new?

haingdc avatar Oct 06 '24 07:10 haingdc