You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Not Sure, but it used to work before react-scripts was introduced!
I had some extra config at Webpack config such as:
new webpack.ProvidePlugin({
$: 'jquery',
jQuery: 'jquery',
'window.jQuery': 'jquery'
})
AND
new CopyWebpackPlugin([
{from: root('public/html'), to: root('dist/html')},
{from: root('public/lang'), to: root('dist/lang')},
{from: root('public/productDesigner'), to: root('dist/productDesigner')},
])
Did you try recovering your dependencies?
Yes.
Which terms did you search for in User Guide?
react-scripts, Webpack ProvidePlugin, CopyWebpackPlugin
Tried to apply some a solution from #4281 by importing globals.js
sadly we don't support customization of Webpack configs. Check https://github.com/timarney/react-app-rewired on how to customize react-scripts if needed, although we cannot provide support for it.
That said you probably need to copy the files manually to the public folder in your case to work properly with globals.js.
Is this a bug report?
Not Sure, but it used to work before react-scripts was introduced!
I had some extra config at Webpack config such as:
AND
Did you try recovering your dependencies?
Yes.
Which terms did you search for in User Guide?
react-scripts, Webpack ProvidePlugin, CopyWebpackPlugin
Tried to apply some a solution from #4281 by importing
globals.js
Steps to Reproduce
I have added the code at codesandbox https://codesandbox.io/s/871o94jn9
Error
Let me know your thoughts,
Thanks
The text was updated successfully, but these errors were encountered: