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

compat: tracking issue for starting a remix project #18326

Closed
5 of 10 tasks
kt3k opened this issue Mar 8, 2022 · 3 comments
Closed
5 of 10 tasks

compat: tracking issue for starting a remix project #18326

kt3k opened this issue Mar 8, 2022 · 3 comments
Assignees

Comments

@kt3k
Copy link
Member

kt3k commented Mar 8, 2022

This issue tracks the problems which blocks starting a new remix project with node.js compat mode of deno.

Issues with npx create-remix (wizard for creating a new remix project)

  • TypeError: child_process.execSync is not a function (used for calling npm install in the wizard)

Issues with npm install in remix project

Issues with npm run dev in remix project

@kwhinnery
Copy link
Contributor

Just piling on here - I tried using the Remix template for Deno on 1.35 and am seeing a bunch of errors both on start and when trying to preview the project.

https://github.com/remix-run/remix/tree/main/templates/deno

Here's what I see in my console upon attempting to run this project.

kevin@kevin-deno my-remix-app % npm run dev

> dev
> npm-run-all build --parallel "dev:*"


> build
> remix build

 info  building... (NODE_ENV=production)
 info  built (121ms)

> dev:remix
> remix watch


> dev:deno
> cross-env NODE_ENV=development deno run --unstable --watch --allow-net --allow-read --allow-env ./build/index.js

Watcher Process started.
Import map diagnostics:
  - Invalid top-level key "comment". Only "imports" and "scopes" can be present.
  - Invalid address "" for the specifier key "// `@remix-run/deno` code is already a Deno module, so just get types for it directly from `node_modules/`".
Watching Remix app in development mode...th/mod.ts (0/2)
💿 Building...://deno.land/[email protected]/http/server.ts 20.23KiB/20.23KiB (1/2)
💿 Rebuilt in 141msno.land/[email protected]/path/glob.ts (2/10)
Listening on http://localhost:8000
ErrorResponse {
  status: 404,
  statusText: "Not Found",
  internal: true,
  data: 'Error: No route matches URL "/_frsh/alive"',
  error: Error: No route matches URL "/_frsh/alive"
    at getInternalRouterError (file:///Users/kevin/dev/deno-remix/my-remix-app/build/index.js:2043:1090)
    at Object.query (file:///Users/kevin/dev/deno-remix/my-remix-app/build/index.js:1387:19)
    at handleDocumentRequestRR (file:///Users/kevin/dev/deno-remix/my-remix-app/build/index.js:7633:35)
    at file:///Users/kevin/dev/deno-remix/my-remix-app/build/index.js:7576:230
    at file:///Users/kevin/dev/deno-remix/my-remix-app/build/index.js:7732:14
    at eventLoopTick (ext:core/01_core.js:183:11)
}
ErrorResponse {
  status: 404,
  statusText: "Not Found",
  internal: true,
  data: 'Error: No route matches URL "/build/entry.client-6TPBIFGI.js"',
  error: Error: No route matches URL "/build/entry.client-6TPBIFGI.js"
    at getInternalRouterError (file:///Users/kevin/dev/deno-remix/my-remix-app/build/index.js:2043:1090)
    at Object.query (file:///Users/kevin/dev/deno-remix/my-remix-app/build/index.js:1387:19)
    at handleDocumentRequestRR (file:///Users/kevin/dev/deno-remix/my-remix-app/build/index.js:7633:35)
    at file:///Users/kevin/dev/deno-remix/my-remix-app/build/index.js:7576:230
    at file:///Users/kevin/dev/deno-remix/my-remix-app/build/index.js:7732:14
    at eventLoopTick (ext:core/01_core.js:183:11)
}
ErrorResponse {
  status: 404,
  statusText: "Not Found",
  internal: true,
  data: 'Error: No route matches URL "/build/_shared/chunk-46RZYS5E.js"',
  error: Error: No route matches URL "/build/_shared/chunk-46RZYS5E.js"
    at getInternalRouterError (file:///Users/kevin/dev/deno-remix/my-remix-app/build/index.js:2043:1090)
    at Object.query (file:///Users/kevin/dev/deno-remix/my-remix-app/build/index.js:1387:19)
    at handleDocumentRequestRR (file:///Users/kevin/dev/deno-remix/my-remix-app/build/index.js:7633:35)
    at file:///Users/kevin/dev/deno-remix/my-remix-app/build/index.js:7576:230
    at file:///Users/kevin/dev/deno-remix/my-remix-app/build/index.js:7732:14
    at eventLoopTick (ext:core/01_core.js:183:11)
}
ErrorResponse {
  status: 404,
  statusText: "Not Found",
  internal: true,
  data: 'Error: No route matches URL "/build/_shared/chunk-DWFMXSZ6.js"',
  error: Error: No route matches URL "/build/_shared/chunk-DWFMXSZ6.js"
    at getInternalRouterError (file:///Users/kevin/dev/deno-remix/my-remix-app/build/index.js:2043:1090)
    at Object.query (file:///Users/kevin/dev/deno-remix/my-remix-app/build/index.js:1387:19)
    at handleDocumentRequestRR (file:///Users/kevin/dev/deno-remix/my-remix-app/build/index.js:7633:35)
    at file:///Users/kevin/dev/deno-remix/my-remix-app/build/index.js:7576:230
    at file:///Users/kevin/dev/deno-remix/my-remix-app/build/index.js:7732:14
    at eventLoopTick (ext:core/01_core.js:183:11)
}
ErrorResponse {
  status: 404,
  statusText: "Not Found",
  internal: true,
  data: 'Error: No route matches URL "/build/root-C4SIFY7A.js"',
  error: Error: No route matches URL "/build/root-C4SIFY7A.js"
    at getInternalRouterError (file:///Users/kevin/dev/deno-remix/my-remix-app/build/index.js:2043:1090)
    at Object.query (file:///Users/kevin/dev/deno-remix/my-remix-app/build/index.js:1387:19)
    at handleDocumentRequestRR (file:///Users/kevin/dev/deno-remix/my-remix-app/build/index.js:7633:35)
    at file:///Users/kevin/dev/deno-remix/my-remix-app/build/index.js:7576:230
    at file:///Users/kevin/dev/deno-remix/my-remix-app/build/index.js:7732:14
    at eventLoopTick (ext:core/01_core.js:183:11)
}
ErrorResponse {
  status: 404,
  statusText: "Not Found",
  internal: true,
  data: 'Error: No route matches URL "/build/routes/_index-CLHRBAGD.js"',
  error: Error: No route matches URL "/build/routes/_index-CLHRBAGD.js"
    at getInternalRouterError (file:///Users/kevin/dev/deno-remix/my-remix-app/build/index.js:2043:1090)
    at Object.query (file:///Users/kevin/dev/deno-remix/my-remix-app/build/index.js:1387:19)
    at handleDocumentRequestRR (file:///Users/kevin/dev/deno-remix/my-remix-app/build/index.js:7633:35)
    at file:///Users/kevin/dev/deno-remix/my-remix-app/build/index.js:7576:230
    at file:///Users/kevin/dev/deno-remix/my-remix-app/build/index.js:7732:14
    at eventLoopTick (ext:core/01_core.js:183:11)
}
ErrorResponse {
  status: 404,
  statusText: "Not Found",
  internal: true,
  data: 'Error: No route matches URL "/build/manifest-7224092C.js"',
  error: Error: No route matches URL "/build/manifest-7224092C.js"
    at getInternalRouterError (file:///Users/kevin/dev/deno-remix/my-remix-app/build/index.js:2043:1090)
    at Object.query (file:///Users/kevin/dev/deno-remix/my-remix-app/build/index.js:1387:19)
    at handleDocumentRequestRR (file:///Users/kevin/dev/deno-remix/my-remix-app/build/index.js:7633:35)
    at file:///Users/kevin/dev/deno-remix/my-remix-app/build/index.js:7576:230
    at file:///Users/kevin/dev/deno-remix/my-remix-app/build/index.js:7732:14
    at eventLoopTick (ext:core/01_core.js:183:11)
}

@bartlomieju
Copy link
Member

@littledivy please take a look at this issue and see if it can be closed

@littledivy
Copy link
Member

Yes, I think this can be closed.

This works fine:

$ deno run -A npm:[email protected] -y test-app/
$ cd test-app/

$ echo "{ unstable: ['byonm'] }" >> deno.json
$ deno task dev

DX not ideal, especially the BYONM part but that's been tracked in #22316

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

No branches or pull requests

4 participants