Closed gvorbeck closed 2 years ago
installing crypto-browserify
and adding
exports.onCreateWebpackConfig = ({ actions }) => {
actions.setWebpackConfig({
resolve: {
fallback: {
crypto: require.resolve('crypto-browserify'),
},
},
});
};
in my gatsby-node.js
file, fixed this error message.
Found here: https://stackoverflow.com/questions/68884421/webpack-breaking-changes-for-builtin-modules-on-gatsby-site
Using your dice roller on a Gatsby project and it's awesome!
However when I try building the static html files I get this error pointing to rpg-dice-roller and "crypo"
I'm using the default engine and haven't selected anything called "crypto" so I'm unsure of the best way to resolve this as I don't want to break anything.