We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I don't know exactly what is wrong here but I can't import the npm package.
import SupabaseProvider from 'y-supabase';
I only get the error message
Module not found: Can't resolve 'y-supabase'
The folder y-supabase exists in node_modules and also has an index file in dist
y-supabase
node_modules
The text was updated successfully, but these errors were encountered:
I think it is the wrong main field in the package.json file... Fixed it by:
main
package.json file
diff --git a/package.json b/package.json index 0e95de4a5d5f63ff3da84ea97a90fe177a89acad..9c4d9fe69df582f39361cc24163b5aa5415f9135 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,7 @@ "version": "0.0.4-7-alpha", "description": "Sync Yjs over supabase", "sideEffects": false, - "main": "src/y-supabase.js", + "main": "dist/index.js", "types": "dist/index.d.ts", "files": [ "dist/**/*"
Sorry, something went wrong.
Pull request fixing this: #5
No branches or pull requests
I don't know exactly what is wrong here but I can't import the npm package.
import SupabaseProvider from 'y-supabase';
I only get the error message
Module not found: Can't resolve 'y-supabase'
The folder
y-supabase
exists innode_modules
and also has an index file in distThe text was updated successfully, but these errors were encountered: