Comments (6)
Hi there,
I came across the same issue in my project. To resolve this, I adjusted the Vite configuration to treat .whl
files as text. This can be achieved by adding the following configuration to your vite.config.ts
file:
export default defineConfig({
optimizeDeps: {
esbuildOptions: {
loader: {
".whl": "text",
},
},
},
// ... other configurations ...
});
This configuration instructs Vite's esbuild to handle .whl
files as plain text, which effectively bypasses the issue. While this is more of a workaround than a permanent solution, it did the trick in my case. I hope this helps you out!
If you have any further insights or a more robust solution, I'd love to hear it.
from jupyter-ui.
@liuxukun2000 Thank you, I was able to run it in vite dev but build is not working. do you able to build the app using the workaround or its for just development?
from jupyter-ui.
The pyodide support has introduced requirements for webpack/vite configs. I have pushed the proposed workaround for dev mode in datalayer-examples/jupyter-react-vite-example@95fe1df
Maybe @fcollonval knows more on how to fix the wheel loading for vite.js?
from jupyter-ui.
Not sure is this link helps https://vitejs.dev/guide/assets
from jupyter-ui.
I also faced the same issue. The solution provided by @liuxukun2000 was helpful. 👍🏼
from jupyter-ui.
Related Issues (20)
- Storybook Pyodide is failing via CDN while succeeding via S3 Bucket HOT 3
- Firefox does not resize the Storybook view for the Cell
- Support Xeus Python Lite kernels and Emscripten Forge environments with `lite` option HOT 2
- Add a initCode props to the components
- Upgrade to JupyterLab 4.1.0b0 HOT 1
- Global CSS cannot be imported from node_modules HOT 3
- Restore IPyWidgets state if available HOT 1
- Package and export the Webpack configuration
- Upgrading to `@jupyterlite/server(-extension)` 0.2.3 breaks jupyter ui lite
- Jupyter Hub support HOT 6
- Preinstalling Libraries when using a notebook component rather than JupyterLabs component HOT 1
- Right click on the JupyterLabApp component makes the layout to shift up and open bottom panel HOT 4
- Bug on saving a file HOT 1
- Creating Custom Toolbar | Sidebar HOT 2
- Markdown collapsing instead of rendering. HOT 1
- Cell height is off by as much as 30+x HOT 3
- Typescript Version Issue HOT 1
- Issue with nextjsExample HOT 1
- Create the Jupyter session or server on-demand HOT 2
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 jupyter-ui.