Closed
Description
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:
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
Steps to Reproduce
I have added the code at codesandbox https://codesandbox.io/s/871o94jn9
Error
jQuery.Deferred exception: FancyProductDesigner is not defined
componentDidMount
Let me know your thoughts,
Thanks
Metadata
Metadata
Assignees
Labels
No labels