-
Notifications
You must be signed in to change notification settings - Fork 535
Open
Labels
bugSomething isn't workingSomething isn't workingsupabase-jsRelated to the supabase-js library.Related to the supabase-js library.
Description
Describe the bug
After updating @supabase/supabase-js to version 2.84.0 in a Nuxt 3 project, running the development server (npm run dev) fails with a ERR_MODULE_NOT_FOUND error.
The error message suggests that the library or the consuming environment is trying to import an internal file (dist/main/lib/constants) without the .js extension. This fails in the Nuxt ESM environment (.nuxt/dev/index.mjs).
Downgrading to version 2.81.1 resolves the issue immediately.
Library affected
supabase-js
Reproduction
No response
Steps to reproduce
- Create a Nuxt 3 project (or use an existing one).
- Install the latest version of the library: npm install @supabase/[email protected]
- Run the dev server: npm run dev
- Observe the error in the terminal.
System Info
% npx envinfo --system --npmPackages '{supabase,@supabase/*}' --binaries --browsers
System:
OS: macOS 26.1
CPU: (10) arm64 Apple M4
Memory: 216.83 MB / 16.00 GB
Shell: 5.9 - /bin/zsh
Binaries:
Node: 22.16.0 - /Users/user/.nvm/versions/node/v22.16.0/bin/node
npm: 10.9.2 - /Users/user/.nvm/versions/node/v22.16.0/bin/npm
Browsers:
Chrome: 142.0.7444.176
Safari: 26.1
npmPackages:
@supabase/supabase-js: 2.81.1 => 2.81.1Used Package Manager
npm
Logs
Click to expand!
Error {▼
name: 'Error',
message: "Cannot find module
'/Users/[username]/Git/[project]/node_modules/@supabase/supabase-js/dist/main/lib/constants'
imported from /Users/[username]/Git/[project]/.nuxt/dev/index.mjs\n" +
'Did you mean to import
"/Users/[username]/Git/[project]/node_modules/@supabase/supabase-js/dist/main/lib/constants.js"?',
stack: "Cannot find module '/Users/[username]/Git/[project]/node_modules/@supabase/supabase-js/dist/main/lib/constants' imported from /Users/[username]/Git/[project]/.nuxt/dev/index.mjs\n" +
'Did you mean to import "/Users/[username]/Git/[project]/node_modules/@supabase/supabase-js/dist/main/lib/constants.js"?\n' +
' at finalizeResolution (node:internal/modules/esm/resolve:275:11)\n' +
' at moduleResolve (node:internal/modules/esm/resolve:860:10)\n' +
' at defaultResolve (node:internal/modules/esm/resolve:984:11)\n' +
' at ModuleLoader.defaultResolve (node:internal/modules/esm/loader:780:12)\n' +
' at #cachedDefaultResolve (node:internal/modules/esm/loader:704:25)\n' +
' at ModuleLoader.resolve (node:internal/modules/esm/loader:687:38)\n' +
' at ModuleLoader.getModuleJobForImport (node:internal/modules/esm/loader:305:38)\n' +
' at ModuleJob._link (node:internal/modules/esm/module_job:137:49)',
code: 'ERR_MODULE_NOT_FOUND',
url: 'file:///Users/[username]/Git/[project]/node_modules/@supabase/supabase-js/dist/main/lib/constants',
unhandled: false,
[Symbol(Symbol.toStringTag)]: 'Error',}Validations
- Follow our Code of Conduct
- Read the Contributing Guidelines.
- Read the docs.
- Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
- Make sure this is a Supabase JS Library issue and not an issue with the Supabase platform. If it's a Supabase platform related bug, it should likely be reported to supabase/supabase instead.
- Check that this is a concrete bug. For Q&A open a GitHub Discussion or join our Discord Chat Server.
- The provided reproduction is a minimal reproducible example of the bug.
nicokempe, cewald, DnzzL, ulrichstark, alextmurray and 3 more
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingsupabase-jsRelated to the supabase-js library.Related to the supabase-js library.