Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

side effect imports with unknown module kinds like css #471

Open
RichieMillennium opened this issue May 1, 2024 · 2 comments
Open

side effect imports with unknown module kinds like css #471

RichieMillennium opened this issue May 1, 2024 · 2 comments

Comments

@RichieMillennium
Copy link

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?

@kkx64
Copy link

kkx64 commented May 29, 2024

Getting the same issue. Any luck?

@RichieMillennium

This comment was marked as off-topic.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Needs Triage
Development

No branches or pull requests

2 participants