Dmitry

Results 136 comments of Dmitry

:smile_cat: I think I fixed it for my case ( `"/~/": "./src/"`) locally: `server.tsx`: ```js if (server.importMap) { server.importMap.imports["/~/"] = "/_ultra/compiler/src/"; } export default server; ``` It would be nice...

[importMap: root import causes «server responded with a MIME type of ''"» error | issue #277 | ultra](https://github.com/exhibitionist-digital/ultra/issues/277) - probably related

@deckchairlabs, @mashaal, do we have working example with alias? Should have one

Entries for paths with aliases just not created in `.ultra/importMap.browser.json` and `importMap.server.json` at all! Expected something like ```json "/~/": "/src/", "./src/app.tsx": "/src/app/app.fe83edc4.js", "/~/app/app.tsx": "/src/app/app.fe83edc4.js", ``` But no entries for `app.fe83edc4.js`...

Ultra uses [mesozoic](https://github.com/deckchairlabs/mesozoic) builder. Aliases should be added to [mesozoic test fixture](https://github.com/deckchairlabs/mesozoic/tree/main/test/fixture)

Wrote script which copies source code to subfolder and transforms absolute local imports with aliases to relative import there: [d9k/citations-supabase-demo: script/copy-and-transform-imports-to-relative.ts](https://github.com/d9k/citations-supabase-demo/blob/imports-transform-to-relative/script/copy-and-transform-imports-to-relative.ts) ```ts const walkIterator = fs.walk( PROJECT_COPY_WITH_IMPORTS_TRANSFORMED_TO_RELATIVE_PATH, { match: matchScriptsRegexArray,...

Can't reproduce: minimal example works fine https://github.com/d9k/d9k-problems-examples/tree/main/deno/ultra/291-nested-path-routes Closing issue for now.

Reproduced on https://github.com/d9k/d9k-problems-examples/tree/main/deno/ultra/291-nested-path-routes ![Selection_2023-12-29_09-16-43](https://github.com/exhibitionist-digital/ultra/assets/7331988/c3075ab2-efe7-4070-8e17-071592ce8e7d) Added component with relative import: ```tsx import { useParams } from 'react-router-dom'; import { Spinner } from "../components/spinner.tsx"; function PageNestedDemo () { const name = useParams()['name'];...

Strangely DevTools source mapping works if I change `importMap.json` entry to relative path: ```json "ultra/": "../../../forks/ultra/" ```

Ultra really just renders html page in response... ```bash > curl http://localhost:8000/_ultra/compiler/src/shared/api/supabase/schema.generated.json Ultratry { var _colorScheme = window.localStorage.getItem("mantine-color-scheme-value"); var colorScheme = _colorScheme === "light" || _colorScheme === "dark" || _colorScheme...