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 am getting this error in browser superCtor.prototype is not an object or null when using jsonwebtoken with sveltekit.
superCtor.prototype is not an object or null
jsonwebtoken
I have polyfills invoked in config but it appears to not solve the issue.
import adapter from '@sveltejs/adapter-static'; import preprocess from 'svelte-preprocess'; import path from 'path'; import { NodeGlobalsPolyfillPlugin } from '@esbuild-plugins/node-globals-polyfill'; import dotenv from 'dotenv-flow'; import rollupNodePolyFill from 'rollup-plugin-node-polyfills'; dotenv.config(); const config = { preprocess: preprocess(), kit: { adapter: adapter({ // default options are shown pages: 'build', assets: 'build', fallback: 'index.html', precompress: false }), vite: { optimizeDeps: { esbuildOptions: { // Node.js global to browser globalThis define: { global: 'globalThis' }, // Enable esbuild polyfill plugins plugins: [ NodeGlobalsPolyfillPlugin({ buffer: true, global: true, process: true, url: true, assert: true, crypto: true, http: true, https: true, os: true, stream: true }) ] } }, resolve: { alias: { $components: path.resolve('./src/components'), $stores: path.resolve('./src/stores'), $api: path.resolve('./src/api'), $node: path.resolve('./node_modules'), '@toruslabs/openlogin': path.resolve( './node_modules/@toruslabs/openlogin/dist/openlogin.umd.min.js' ) } }, build: { minify: false, rollupOptions: { plugins: [ // Enable rollup polyfills plugin // used during production bundling rollupNodePolyFill() ] } } } } }; export default config;
The text was updated successfully, but these errors were encountered:
This same problem is hitting pouchdb with vite as well pouchdb/pouchdb#8535
pouchdb
vite
Any ideas how to make progress on this?
Sorry, something went wrong.
Getting this issue also with Vite and pouchDB
No branches or pull requests
I am getting this error in browser
superCtor.prototype is not an object or null
when usingjsonwebtoken
with sveltekit.I have polyfills invoked in config but it appears to not solve the issue.
The text was updated successfully, but these errors were encountered: