Comments (2)
Thanks for providing the demo app; that allowed me to quickly to check the problem!
The error occurs I believe is because Svelte doesn't apply automatic polyfills, unlike react, nextjs . These latter frameworks use bundlers like webpack,which automatically polyfill these variables to make the code work in the browser.
For now, you'll need to manually polyfill it in your vite.config.ts file. I've added this issue to our to-do list and hopefully, we'll have it fixed in upcoming patches.
import { sveltekit } from '@sveltejs/kit/vite';
import { defineConfig } from 'vite';
export default defineConfig({
plugins: [sveltekit()],
define: {
'process.env.NODE_DEBUG': 'false',
'window.global': 'globalThis'
}
});
from js-sdk.
Perfect! This worked thanks!
from js-sdk.
Related Issues (20)
- I sighted a typographical error in the "What is Lit" section of the documentation. HOT 2
- process not defined in node_modules/util/util.js HOT 1
- ipfs-http-client is deprecated HOT 3
- Error with humanizeAccessControlConditions() when using ERC20 tokens HOT 1
- The signature problem on Integrating with Ceramic HOT 1
- EIP-1271 Authsig failed 401 but the contract return 0x1626ba7e HOT 1
- Request for SPA-Friendly OAuth Redirection Mechanism in lit-auth-client HOT 5
- there is a guide to contribute? HOT 1
- Breaks at decrypt - parsing SIWE message HOT 3
- Create New Logging level uitlities HOT 6
- Add new `e2e` tests for lit action api HOT 3
- Yarn Upgrade Needed HOT 4
- Errors with the React sample app HOT 5
- Cayenne is evaluating Sepolia access conditions based on data from the Ethereum mainnet. HOT 1
- Wrong version of `multiformats` package breaking `@lit-protocol/contracts-sdk` HOT 4
- Module not found error in browser
- Cannot find module './fetch.node' HOT 9
- File uses global instead of globalThis HOT 2
- No known conditions for "./cid" specifier in "multiformats" package HOT 3
- Getting Timeout error from Lit Node Client while generating sessions HOT 9
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from js-sdk.