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
require() of ES Module /Users/rafaeldecarvalho/dev/bgc/criminal/bgc-scrapers/node_modules/file-type/index.js from /Users/rafaeldecarvalho/dev/bgc/criminal/bgc-scrapers/.webpack/HealthsurveillanceCrawl/src/functions/crawl/healthsurveillance.js not supported.\n' + 'Instead change the require of index.js in /Users/rafaeldecarvalho/dev/bgc/criminal/bgc-scrapers/.webpack/HealthsurveillanceCrawl/src/functions/crawl/healthsurveillance.js to a dynamic import() which is available in all CommonJS modules.
I tried to import in a dynamic way like that: const fileTypeDynamicImport = async () => { const fileType = await import("file-type"); return fileType; };
I tried to add some configs to babel to ignore dynamic import: [ "@babel/preset-env", { "exclude": [ "proposal-dynamic-import" ] } ]
I dont know how to solve this. Any help?
The text was updated successfully, but these errors were encountered:
Anyone know how to fix this error?
require() of ES Module /Users/rafaeldecarvalho/dev/bgc/criminal/bgc-scrapers/node_modules/file-type/index.js from /Users/rafaeldecarvalho/dev/bgc/criminal/bgc-scrapers/.webpack/HealthsurveillanceCrawl/src/functions/crawl/healthsurveillance.js not supported.\n' + 'Instead change the require of index.js in /Users/rafaeldecarvalho/dev/bgc/criminal/bgc-scrapers/.webpack/HealthsurveillanceCrawl/src/functions/crawl/healthsurveillance.js to a dynamic import() which is available in all CommonJS modules.
I tried to import in a dynamic way like that:
const fileTypeDynamicImport = async () => { const fileType = await import("file-type"); return fileType; };
I tried to add some configs to babel to ignore dynamic import:
[ "@babel/preset-env", { "exclude": [ "proposal-dynamic-import" ] } ]
I dont know how to solve this. Any help?
The text was updated successfully, but these errors were encountered: