Bug in next.js 13 #324
-
|
Beta Was this translation helpful? Give feedback.
Answered by
FlorianKoerner
May 29, 2023
Replies: 2 comments
-
Maybe similar problem? Does the workaround work for you? |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
FlorianKoerner
-
With import path from 'path';
import { fileURLToPath } from 'url';
/** @type {import('next').NextConfig} */
// Convert the module URL to a directory path
const __dirname = path.dirname(fileURLToPath(import.meta.url));
const nextConfig = {
webpack: (config, { isServer }) => {
config.resolve.alias["@dicebear/converter"] = path.resolve(
__dirname,
"node_modules/@dicebear/converter/lib/index.js"
);
return config;
},
}; |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Maybe similar problem? Does the workaround work for you?
hustLer2k/dicebear-browser#1