Skip to content
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

stopped working #19

Closed
foxwave88 opened this issue Oct 9, 2024 · 5 comments
Closed

stopped working #19

foxwave88 opened this issue Oct 9, 2024 · 5 comments

Comments

@foxwave88
Copy link

i was using it for months but for a while (i think atleast for last week) it stopped working. New version is not working on me because i had to use old node version how cani fix

@michaelbrusegard
Copy link
Owner

michaelbrusegard commented Oct 9, 2024

Well the new version works differently and has a new API. You can either update to the new version and change the code to the new API, or you can set the package.json to use the old version (0.6.1).

@foxwave88
Copy link
Author

I didnt update anything and didnt change anything in my codes. But it stopped working. But if i change package.json to the 0.6.1 i guess it will work. I will try and let you know. Thank you for answer.

@michaelbrusegard
Copy link
Owner

Yea it was probably set to use the latest version in the package.json using the ^ arrow on the version number. Glad you got it working

@foxwave88
Copy link
Author

These are my package codes, it was already0.6.1 i didnt change it.
"webgl-fluid-enhanced": "^0.6.1",

"node_modules/webgl-fluid-enhanced": {
"version": "0.6.1",
"resolved": "https://registry.npmjs.org/webgl-fluid-enhanced/-/webgl-fluid-enhanced-0.6.1.tgz",
"integrity": "sha512-prZBEkNhoy+stOCUVh9WL3Zkes43h/N1q4lTWqLweACUcjBS/QOrlUZVaXWvXodHdG/6MBxdwiddx13YjForZA=="
},

<script type="module">

import { initializeFluidSimulation } from './fluid.js';
const settings = {
COLOR_PALETTE: ['#FFD700']
};
initializeFluidSimulation(document.querySelector('canvas'), settings);
</script>

and this is my fluid.js codes:

import webGLFluidEnhanced from 'https://unpkg.com/webgl-fluid-enhanced@latest';
export function initializeFluidSimulation(canvasElement, userSettings = {}) {
const defaultSettings = {

//some configurations

};

const settings = { ...defaultSettings, ...userSettings };

webGLFluidEnhanced.simulation(canvasElement, settings);

}

I didnt change any of codes and suddenly it stopped working. What might be the problem? my node module is already 0.6.1

@michaelbrusegard
Copy link
Owner

If it suddenly stopped working, but the version did not change then it does not have anything to do with the package being updated. Then you must have changed something in your config

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants