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

Redirects silently fail to a route that has an import error #8915

Open
cha0s opened this issue Feb 28, 2024 · 0 comments · May be fixed by #8932
Open

Redirects silently fail to a route that has an import error #8915

cha0s opened this issue Feb 28, 2024 · 0 comments · May be fixed by #8932

Comments

@cha0s
Copy link

cha0s commented Feb 28, 2024

Reproduction

Repository: https://github.com/cha0s/remix-eat-error

Heads up: This is using the vite-express template and happens in dev mode.

There is only one commit on top of the output from npx create-remix@latest --template remix-run/remix/templates/vite-express at cha0s/remix-eat-error@60640ef

Steps:

  • Clone repository and npm install
  • npm run dev
  • Go to browser and try to click the submit button

P.S. I did try to create a test for you guys, but the test wouldn't even build because of the import/export issue! This may be specifically a dev mode bug.

System Info

System:
    OS: Linux 5.15 Ubuntu 20.04.6 LTS (Focal Fossa)
    CPU: (4) x64 Intel(R) Core(TM) i5-6600K CPU @ 3.50GHz
    Memory: 12.58 GB / 31.31 GB
    Container: Yes
    Shell: 5.0.17 - /bin/bash
  Binaries:
    Node: 20.11.1 - ~/.nvm/versions/node/v20.11.1/bin/node
    Yarn: 1.22.21 - ~/.nvm/versions/node/v20.11.1/bin/yarn
    npm: 10.2.4 - ~/.nvm/versions/node/v20.11.1/bin/npm
    pnpm: 8.15.1 - ~/.nvm/versions/node/v20.11.1/bin/pnpm
    bun: 1.0.17 - ~/.bun/bin/bun
    Watchman: 4.9.0 - /usr/bin/watchman
  Browsers:
    Chromium: 122.0.6261.69
  npmPackages:
    @remix-run/dev: ^2.7.2 => 2.7.2 
    @remix-run/express: ^2.7.2 => 2.7.2 
    @remix-run/node: ^2.7.2 => 2.7.2 
    @remix-run/react: ^2.7.2 => 2.7.2 
    vite: ^5.1.0 => 5.1.4

Used Package Manager

npm

Expected Behavior

There should be some sort of error output about the incorrect import/export.

Actual Behavior

The redirect to /test silently fails and lands the user back on / with no output.

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

Successfully merging a pull request may close this issue.

2 participants