-
-
Notifications
You must be signed in to change notification settings - Fork 616
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
Use in Nextjs #187
Comments
Seems like you are having trouble loading es6 modules in next. Not sure how to configure that. |
|
Can you get it working? No luck here, even tried using next-transpile-modules. |
was able to achieve rough-like effect in next using the thi.ng geom-fuzz library 🤷♂️ |
Here is a simple example in Next: import rough from "roughjs/bundled/rough.cjs.js";
export default function ComponentName() {
useEffect(() => {
let svg = document.getElementById('some-id');
const rc = rough.svg(svg);
let node = rc.circle(12, 12, 20);
svg.appendChild(node);
}, [])
return <svg id='some-id' />
} be sure to set height ad width for your |
import rough from "roughjs/bundled/rough.esm"
import rough from "roughjs/bin/rough"
I need some help, thanks
The text was updated successfully, but these errors were encountered: