You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to include npm @techstark/opencv-js in my web app.
The github site for this package recommended this webpack config:
module.exports = {
resolve: {
modules: [...],
fallback: {
fs: false,
path: false,
crypto: false
}
}
};
But my app is using rollup and I don't know how to translate this into rollup config.
I have attempted to out at the top of my rollup.config file:
import nodePolyfills from 'rollup-plugin-node-polyfills'; errors during build
and in the plugins array include:
nodePolyfills()
but that errors
Help greatly appreciated.
This discussion was converted from issue #1757 on August 23, 2024 03:02.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I'm trying to include npm @techstark/opencv-js in my web app.
The github site for this package recommended this webpack config:
module.exports = {
resolve: {
modules: [...],
fallback: {
fs: false,
path: false,
crypto: false
}
}
};
But my app is using rollup and I don't know how to translate this into rollup config.
I have attempted to out at the top of my rollup.config file:
import nodePolyfills from 'rollup-plugin-node-polyfills'; errors during build
and in the plugins array include:
nodePolyfills()
but that errors
Help greatly appreciated.
Beta Was this translation helpful? Give feedback.
All reactions