Closed oviedo97fer closed 9 months ago
@oviedo97fer Can you give me an example to reproduce the error. This is not necessarily a component problem
Just an error with webpack and process.env
fix:
new webpack.ProvidePlugin({
process: 'process/browser.js',
}),
new webpack.DefinePlugin({
'process.env': JSON.stringify(dotenv.config().parsed), // it will automatically pick up key values from .env file
'process.env.DEBUG': JSON.stringify(process.env.DEBUG),
}),
I'm trying to use this package with the ModuleFederation microfrontend approach.
From a container app, I retrieve a component that uses this package. While testing the component with Storybook in the same project, it works well. However, when I attempt to use the same component, I encounter the following error:
I just use: