-
-
Notifications
You must be signed in to change notification settings - Fork 67
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
importMap: root import causes «server responded with a MIME type of ''"» error #277
Comments
An issue exists with both (absolute imports in |
ok, if I use absolute imports with
I get errors:
(thx |
There is open PR #243 with absolute import example by @ahuigo.
But I don't know how to implement similar changes to support current ultra revision properly because there is no |
I think there must be changes in https://github.com/exhibitionist-digital/ultra/blob/main/lib/ultra.ts ( |
😸 I think I fixed it for my case (
if (server.importMap) {
server.importMap.imports["/~/"] = "/_ultra/compiler/src/";
}
export default server; It would be nice if someone implement more common solution at https://github.com/exhibitionist-digital/ultra/blob/main/lib/ultra.ts involving replace |
If I use absolute imports and
<MantineProvider/>
then<style data-emotion="mantine" data-s=""></style>
not added to resulting html code.I think at may be connected with fact that absolute import in
./src/app.tsx
causes an error visible in Chrome Dev Tools:importMap.json
:Root import line at
./src/app.tsx
:(instead of
./components/spinner.tsx
)Discussion on Discord
The text was updated successfully, but these errors were encountered: