We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hello, I am trying to use Pyodide with my NextJS application, and using this plugin.
This is why next.config.js
const CopyPlugin = require("copy-webpack-plugin"); const { PyodidePlugin } = require("@pyodide/webpack-plugin"); const nextConfig = { webpack(config, { isServer }) { config.plugins.push( new CopyPlugin({ patterns: [ { from: "node_modules/@rdkit/rdkit/dist/RDKit_minimal.wasm", to: "static/chunks" } ] }) ); if (!isServer) { config.resolve.fallback = { fs: false }; } return config; }, plugins: [new PyodidePlugin()], output: "export", basePath: "/sar-in-browser", images: { unoptimized: true, }, }; module.exports = nextConfig;
And this is how I am trying to load pyodide:
let pyodide = await loadPyodide({ indexURL: { indexURL: `${window.location.origin}/pyodide` }, });
Any help would be lovely!
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hello, I am trying to use Pyodide with my NextJS application, and using this plugin.
This is why next.config.js
And this is how I am trying to load pyodide:
Any help would be lovely!
The text was updated successfully, but these errors were encountered: