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
Can't import the named export 'EventEmitter' (reexported as 'EventEmitter') from default-exporting module (only default export is available)
ERROR in ./node_modules/@fluid-internal/client-utils/lib/indexBrowser.js
I have no idea what is going on. I could not find any relevant information in documentations. I am creating a React JS app. I have reached here after going through a lot outdated examples & fluid functions which turned out to be deprecated.
The text was updated successfully, but these errors were encountered:
Turns out it had to do with the way CRA resolves EventEmitter dependencies. I moved to custom webpack which resolved this error for me. Webpack 5 does has some known errors which are documented here. One of the only things that I could find in the documentation.
CRA (create-react-app) attempts to do some magic for management of polyfills as it does not directly expose webpack config.
Fluid Framework has reduced dependencies on Node.js core modules in 2.x but has not eliminated all of them. It is also common for any apps written on earlier versions of Fluid Framework to end up with a silent, direct Node.js module dependency and then those will persist even once Fluid Framework use has been eliminated. When the issue is missing polyfill, the error is not likely to be the above but a message that says Module not found: Error: Can't resolve '<name of Node.js module>' in ... and goes on to talk about polyfills. In those situations, if the root dependency can't be eliminated, then simply adding a polyfill to local package production dependencies will likely resolve the issue.
Can't import the named export 'EventEmitter' (reexported as 'EventEmitter') from default-exporting module (only default export is available)
ERROR in ./node_modules/@fluid-internal/client-utils/lib/indexBrowser.js
I have no idea what is going on. I could not find any relevant information in documentations. I am creating a React JS app. I have reached here after going through a lot outdated examples & fluid functions which turned out to be deprecated.
The text was updated successfully, but these errors were encountered: