Docker build failed with Type Error
jainvaibhav671 opened this issue · comments
Vaibhav Jain commented
Bug report
- I confirm this is a bug with Supabase, not with my own application.
- I confirm I have searched the Docs, GitHub Discussions, and Discord.
Describe the bug
It is a Typescript syntax error with isolatedModules
on
To Reproduce
I was building a docker image for my application using this template on NextJS docs
Building a NextJS app with supabase should raise this error
This is my code My Code.
Expected behavior
Expected it to build when the Dockerfile ran next build
Screenshots
This is the error I got from docker build
https://drive.google.com/file/d/1HRU_2bOrK5zQPGKvxAIPZ52_TPAv9NO9/view?usp=sharing
System information
- OS: Linux 18.04
- Version of supabase-js: ^2.24.0
- Version of Node.js: 18.16.0
Additional context
I am using NextJS with TypeScript+SWC.
I tried setting isolatedModules to false, but when I ran npm run build it set it back to true