Handlebars-loader
Answered
D34dlyK1ss posted this in #help-forum
Answered by D34dlyK1ss
/** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: true,
webpack: (config) => {
config.resolve.alias = {
...config.resolve.alias,
"handlebars/runtime": "handlebars/dist/cjs/handlebars.runtime",
"handlebars": "handlebars/dist/cjs/handlebars.runtime"
};
return config;
}
};
export default nextConfig;4 Replies
but doesn't work
🆙
/** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: true,
webpack: (config) => {
config.resolve.alias = {
...config.resolve.alias,
"handlebars/runtime": "handlebars/dist/cjs/handlebars.runtime",
"handlebars": "handlebars/dist/cjs/handlebars.runtime"
};
return config;
}
};
export default nextConfig;Answer