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

Newly created and built Remix application using the Cloudflare template fail typechecking #10068

Open
dario-piotrowicz opened this issue Oct 6, 2024 · 0 comments · May be fixed by #10070
Open

Comments

@dario-piotrowicz
Copy link
Contributor

Reproduction

Create a new Remix Cloudflare (as instructed in the docs):

npx create-remix@latest --template remix-run/remix/templates/cloudflare

then cd and build the application

cd ./my-remix-app # or the chosen name
npm run build

Finally run npm run typecheck it will display an error saying that the build value in the [[path]].ts file is incompatible with the expected one:
Screenshot 2024-10-06 at 18 41 52

System Info

System:
    OS: macOS 14.7
    CPU: (10) arm64 Apple M1 Pro
    Memory: 97.03 MB / 32.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 20.11.0 - ~/.nvm/versions/node/v20.11.0/bin/node
    Yarn: 1.22.19 - ~/.nvm/versions/node/v20.11.0/bin/yarn
    npm: 10.2.4 - ~/.nvm/versions/node/v20.11.0/bin/npm
    pnpm: 9.5.0 - ~/Library/pnpm/pnpm
    bun: 1.0.6 - ~/.bun/bin/bun
  Browsers:
    Chrome: 129.0.6668.90
    Safari: 18.0
  npmPackages:
    @remix-run/cloudflare: ^2.12.1 => 2.12.1 
    @remix-run/cloudflare-pages: ^2.12.1 => 2.12.1 
    @remix-run/dev: ^2.12.1 => 2.12.1 
    @remix-run/react: ^2.12.1 => 2.12.1 
    vite: ^5.1.0 => 5.4.8

Used Package Manager

npm

Expected Behavior

when I run npm run typecheck the command should succeed and not error

Actual Behavior

thenpm run typecheck the command errors

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