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

Using typescript for remix.config breaks deployment. #64

Closed
sigma-andex opened this issue Nov 9, 2023 · 5 comments
Closed

Using typescript for remix.config breaks deployment. #64

sigma-andex opened this issue Nov 9, 2023 · 5 comments

Comments

@sigma-andex
Copy link

sigma-andex commented Nov 9, 2023

Using typescript for remix.config breaks the deployment:

500: INTERNAL_SERVER_ERROR Code: FUNCTION_INVOCATION_FAILED

Using remix.config.ts works fine locally and also builds on vercel.

This is possibly related to #59 (at least I get the same error Error [ERR_MODULE_NOT_FOUND]: Cannot find module '/var/task/build/build-nodejs-<hash>.js' imported from /var/task/build/server-build-nodejs-<hash>.mjs in the logs).
Switching to remix.config.js solved the issue.

A minimal reproducible example can be found here: https://github.com/expln-ai/remix-tutorial
-> remix.config.js works
-> remix.config.ts doesn't

@benjaminleonard
Copy link

Oh nice find! Changing to js fixes my issue

@TooTallNate
Copy link
Member

I'm not seeing anywhere in the Remix docs that .ts is supported for the remix.config file. Correct me if I'm wrong (remix-run#2934, remix-run#438).

@TooTallNate
Copy link
Member

@sigma-andex
Copy link
Author

I'm not seeing anywhere in the Remix docs that .ts is supported for the remix.config file. Correct me if I'm wrong (remix-run#2934, remix-run#438).

Oh I see. I just used it and it worked locally, so didn't pay attention to whether it was officially supported or not.

@TooTallNate
Copy link
Member

It "worked" but was just using the default values that Remix uses. If you had tried to change anything in that configuration, those values would not have been picked up.

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

3 participants