Comments (16)
@ZBMO, @Killian604 and @joelwiesmann, I have opened a PR to fix the build on windows. It would be awesome if you could help us and take few minutes to check if it also solves the issue on your side.
That works great, I tested it with the default bubble components and my own. thank you!
from streamsync.
I experience the same thing with the linked files, I am using nodejs v20.10.0 in a venv running python 3.10.11 I will upload examples of my files on windows and linux for the BubbleMessage and BubbleMessageAdvanced later tonight.
from streamsync.
That's awesome, I think we should focus our investigation on the behavior of
vite
on windows.
thanks, idk if this is relevant but I can develop the custom components on windows using the instant reload, so custom.dev works ok on windows, just not the custom.build
from streamsync.
I also have this problem.
Steps followed from the following tutorial link: https://www.streamsync.cloud/custom-components.html
from streamsync.
Hello,
I have try on my side, it's working well. Could you try with these files extension.zip ? It will help to know if we have to look for on the build process or on the browser integration.
I have checked on chromium and firefox on ubuntu. Do you have info about your environment (browser, os, ...)
from streamsync.
I experience the same thing with the linked files, I am using nodejs v20.10.0 in a venv running python 3.10.11 I will upload examples of my files on windows and linux for the BubbleMessage and BubbleMessageAdvanced later tonight.
ok here they are, top one is a link to my extension files built on my windows computer (do not work right), bottom is the files from my other machine (they've been working). They are in fact different.
extension files from windows
extension files from ubuntu
@FabienArcellier i'll upload a video of it happening tomorrow.
from streamsync.
I have done a diff on both files after reformating. I think the one from ubuntu (my version) is linked to the code of streamsync, the one on windows (your version) has built its own symbol.
The external link from vite.config.custom.js
seems to be ignored on windows build. There is no trace in result file. @ramedina86 would have better understanding of this part than me.
/*
injectionKeys is externalised so that it can be linked at runtime.
Otherwise, new, independent instances of Symbol would be created, for which
nothing would be provided.
*/
const injectionKeysPath = fileURLToPath(
new URL("src/injectionKeys.ts", import.meta.url),
);
Here is the diff of both file templates.umd.js
after reformating, mine on ubuntu of the left, your on windows on the rigth
https://www.diffchecker.com/DStPaWJf/ (toke a look on line 2)
Could you share your list on npm dependencies ? Here is mine on ubuntu, I use node v16.20.2.
[email protected] /xxxxxxxxxxxxxxxxx/ui
├── @apache-arrow/[email protected]
├── @monaco-editor/[email protected]
├── @rushstack/[email protected]
├── @types/[email protected]
├── @vitejs/[email protected]
├── @vue/[email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected] extraneous
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected] invalid: "latest" from the root project
├── [email protected]
└── [email protected]
from streamsync.
I experience the same thing with the linked files, I am using nodejs v20.10.0 in a venv running python 3.10.11 I will upload examples of my files on windows and linux for the BubbleMessage and BubbleMessageAdvanced later tonight.
ok here they are, top one is a link to my extension files built on my windows computer (do not work right), bottom is the files from my other machine (they've been working). They are in fact different. extension files from windows extension files from ubuntu
@FabienArcellier i'll upload a video of it happening tomorrow.
Could you try the version build on ubuntu on instance of streamsync application ? Does it work ?
from streamsync.
I experience the same thing with the linked files, I am using nodejs v20.10.0 in a venv running python 3.10.11 I will upload examples of my files on windows and linux for the BubbleMessage and BubbleMessageAdvanced later tonight.
ok here they are, top one is a link to my extension files built on my windows computer (do not work right), bottom is the files from my other machine (they've been working). They are in fact different. extension files from windows extension files from ubuntu
@FabienArcellier i'll upload a video of it happening tomorrow.Could you try the version build on ubuntu on instance of streamsync application ? Does it work ?
can you clarify what the version build is? I just now made a fresh venv and a fresh clone of streamsync, ran custom.build and tried the two bubblemessage components and they worked fine
from streamsync.
I have done a diff on both files after reformating. I think the one from ubuntu (my version) is linked to the code of streamsync, the one on windows (your version) has built its own symbol.
The external link from
vite.config.custom.js
seems to be ignored on windows build. There is no trace in result file. @ramedina86 would have better understanding of this part than me./* injectionKeys is externalised so that it can be linked at runtime. Otherwise, new, independent instances of Symbol would be created, for which nothing would be provided. */ const injectionKeysPath = fileURLToPath( new URL("src/injectionKeys.ts", import.meta.url), );Here is the diff of both file
templates.umd.js
after reformating, mine on ubuntu of the left, your on windows on the rigth https://www.diffchecker.com/DStPaWJf/ (toke a look on line 2)Could you share your list on npm dependencies ? Here is mine on ubuntu, I use node v16.20.2.
[email protected] /xxxxxxxxxxxxxxxxx/ui ├── @apache-arrow/[email protected] ├── @monaco-editor/[email protected] ├── @rushstack/[email protected] ├── @types/[email protected] ├── @vitejs/[email protected] ├── @vue/[email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] extraneous ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] invalid: "latest" from the root project ├── [email protected] └── [email protected]
here's mine on windows, npm 10.2.3, node 20.10.0
[email protected] C:xxxxxxxxxxxxxxxxx\ui
├── @apache-arrow/[email protected]
├── @monaco-editor/[email protected]
├── @rushstack/[email protected]
├── @types/[email protected]
├── @vitejs/[email protected]
├── @vue/[email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected] invalid: "latest" from the root project
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected] invalid: "latest" from the root project
├── [email protected]
└── [email protected]
from streamsync.
Could you try the version build on ubuntu on instance of streamsync application ? Does it work ?
can you clarify what the version build is? I just now made a fresh venv and a fresh clone of streamsync, ran custom.build and tried the two bubblemessage components and they worked fine
Sorry, I was unclear. Can you test one of the components built on Ubuntu on a streamsync application developed on Windows? Does it work ? If it works, we will focus our investigation on the build of custom compotent on windows platform.
from streamsync.
Could you try the version build on ubuntu on instance of streamsync application ? Does it work ?
can you clarify what the version build is? I just now made a fresh venv and a fresh clone of streamsync, ran custom.build and tried the two bubblemessage components and they worked fine
Sorry, I was unclear. Can you test one of the components built on Ubuntu on a streamsync application developed on Windows? Does it work ? If it works, we will focus our investigation on the build of custom compotent on windows platform.
ah so do "npm custom.build" on ubuntu and then use those two generated files on a windows streamsync app, I will do that.
from streamsync.
Could you try the version build on ubuntu on instance of streamsync application ? Does it work ?
can you clarify what the version build is? I just now made a fresh venv and a fresh clone of streamsync, ran custom.build and tried the two bubblemessage components and they worked fine
Sorry, I was unclear. Can you test one of the components built on Ubuntu on a streamsync application developed on Windows? Does it work ? If it works, we will focus our investigation on the build of custom compotent on windows platform.
components built on ubuntu work on both systems, components built on windows don't work on either system.
from streamsync.
Could you try the version build on ubuntu on instance of streamsync application ? Does it work ?
can you clarify what the version build is? I just now made a fresh venv and a fresh clone of streamsync, ran custom.build and tried the two bubblemessage components and they worked fine
Sorry, I was unclear. Can you test one of the components built on Ubuntu on a streamsync application developed on Windows? Does it work ? If it works, we will focus our investigation on the build of custom compotent on windows platform.
here's a clip of what happens when I use the windows-built files
ss-error-example.mp4
from streamsync.
That's awesome, I think we should focus our investigation on the behavior of vite
on windows.
from streamsync.
@ZBMO, @Killian604 and @joelwiesmann, I have opened a PR to fix the build on windows. It would be awesome if you could help us and take few minutes to check if it also solves the issue on your side.
from streamsync.
Related Issues (20)
- Large plotly plots will crash streamsync, while dash has no issues showing the same... HOT 4
- Arabic characters not displaying correctly HOT 2
- Repater component shows extra components when key names contain dots after mutation handling HOT 4
- Event and state serde aren't expansible HOT 3
- Mutations for StateProxy-contained lists may not be tracked HOT 1
- Latest master doesn't build HOT 3
- How to deploy as a web application? HOT 2
- Configure component once, use many times HOT 1
- Invalid escape sequence in core.py HOT 3
- Custom Sidebar is not put in the sidebarContainer slot HOT 4
- streamsync 0.3.0 installation problem on Windows11 HOT 3
- Fix docs video on mobile HOT 1
- Add Discord link to README and website HOT 2
- Add serialiser for Polars and Dataframe Interchange Protocol
- Repeater triggers exception when the last item is removed from linked state element HOT 2
- Slider width is not constant if it involves decimals HOT 1
- change on value of a graph as vega spec does not trigger mutation in extension HOT 6
- Python 3.12 tests issuing DeprecationWarning related to multiprocessing HOT 2
- use poetry instead of setup tools as package manager
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 streamsync.