-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
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
Build failing #123
Comments
Hello! Thanks for reporting this issue. I merged an issue in dev regarding the build (see #120) but it's not released yet. Can you try giving it an outDir when prompted in the command line? Otherwise, does this still happen if you installed Fragment locally from the dev branch? Thanks! |
I get the same issue when providing an outDir
No it doesn't. Even when I checkout 0.1.17 and run the build function for the examples it runs okay, just with a couple of warnings about dynamic imports from Vite. For context, my folder structure looks like this:
And I'm running fragment from within the Here is the output:
Does anything look out of the ordinary here? |
Thanks for the details. No it should work the way you did it, I'll give it a try. The error does ring a bell though, I'll have a look |
Ok this seems to be a Vite issue, fixed in If it's under 5.0 (it should be), can you force an install of Vite with |
Yeah that fixed it, I also had to update @sveltejs/vite-plugin-svelte so it was compatible with the new Vite version too |
I need to run some tests to update to the dependencies to Vite 5 but it will be fixed in the next release. Thanks for spotting this issue! |
Thanks for the quick fix 😄 |
Which versions of These are my updated local dependencies but they don't seem to be working around the build issue :
|
Did you install these inside the node_modules/fragment-tools folder rather than your project's root folder? |
I tried updating the dependencies both in my project's root folder and inside of my global installation of fragment-tools. |
I was able to get the build to finish with a different error (progress!) after switching from the global instance of Fragment to a version local to my project folder and updating the dependencies |
Hi, if I try and build a sketch via
npx fragment sketch.js --build
it fails with the following error:I've tried a different p5 version (1.4.1) and the build gives the same error.
Is this something on my end? My project is empty aside from installing fragment and trying to build an empty sketch.
Edit: The build works fine with fragment 0.1.16
The text was updated successfully, but these errors were encountered: