Skip to content

/~/ alias + build => Module not found on runtime #290

Description

@d9k

https://github.com/d9k/citations-supabase-demo/tree/726f3da7cf16698975bc4906a8274967c03f705b

> deno task build
Task build deno run --no-npm -A ./build.ts
[ultra] - INFO ✔ Build is valid
[ultra] - INFO Building module graph for entrypoint ./client.tsx
[ultra] - INFO ✔ Module graph built
[ultra] - INFO Vendor modules for entrypoint ./client.tsx
[ultra] - INFO ✔ Vendored 21 modules for entrypoint ./client.tsx
[ultra] - INFO Building module graph for entrypoint ./server.tsx
[ultra] - INFO ✔ Module graph built
[ultra] - INFO Vendor modules for entrypoint ./server.tsx
[ultra] - INFO ✔ Vendored 153 modules for entrypoint ./server.tsx
[ultra] - INFO Compiling sources
[ultra] - INFO ✔ Compiled 97 sources
[ultra] - INFO Optimizing CSS sources
[ultra] - INFO ✔ Optimized 4 CSS sources
[ultra] - INFO Generating asset-manifest.json
[ultra] - INFO ✔ Generated asset-manifest.json
[ultra] - INFO ✔ Patched deno.json
[ultra] - INFO ✔ Build complete

You can now deploy the "/home/d9k/cr/demo/citations-supabase-demo/.ultra" output directory to a platform of your choice.
Instructions for common deployment platforms can be found at https://ultrajs.dev/docs#deploying.

Alternatively, you can cd into "/home/d9k/cr/demo/citations-supabase-demo/.ultra" and run: deno task start
> cd .ultra
> deno task start
Task start ULTRA_MODE=production deno run --no-npm -A --no-remote ./server.js
error: Module not found "file:///~/app/app.tsx".
    at file:///home/d9k/cr/demo/citations-supabase-demo/.ultra/server.js:1:201

Error highlight

Module not found "file:///~/app/app.tsx

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions