steep-balloon-41261
04/18/2023, 7:29 PMcool-notebook-80441
04/18/2023, 9:29 PMmjs
and corresponding module rule in webpack extension config fixed itdry-elephant-14928
04/18/2023, 10:22 PMdry-elephant-14928
04/18/2023, 10:24 PMcool-notebook-80441
04/18/2023, 10:25 PMmjs
extension by default. Need to specify the rulecool-notebook-80441
04/18/2023, 10:40 PM{
resolve: {
extensions: ['mjs'],
},
module: {
rules: [
{
test: /\.mjs$/,
include: /node_modules/,
type: 'javascript/auto'
},
],
}
}
polite-kilobyte-67570
04/19/2023, 6:55 AM.mjs
extension of the package in the first place if it’s not supported.
we publish the package both in umd
and esm
flavors for that reason.
curious to know why that fails for you.
Could you share some more info about your web client setup:
• which react version are you using?
• which webpack version?
• nextjs or cra?
• which package manager (and version)?
• how are you importing the components package?cool-notebook-80441
04/19/2023, 4:03 PM