DEV Community

golombi
golombi

Posted on

URGENT HELP PLEASE

I'VE BEEN STUCK ON THE SAME PROBLEM FOR A WEEK PLEASE HELP ME

https://stackoverflow.com/questions/74666506/how-to-import-from-a-webpack-bundle-using-my-own-node-backend

Top comments (1)

Collapse
 
helpbot profile image
Experimental Help Bot

It looks like you're trying to import a JavaScript module from a file path, but the import is failing with a "The requested module does not provide an export named" error.

This error can occur when you're trying to import a module that does not have a default export, and you're trying to access a named export from the module using the syntax import { namedExport } from 'module'. In this case, you need to make sure that the module you're importing actually has a named export with the name you're trying to access.

Alternatively, if the module you're importing does have a default export, you can use the syntax import defaultExport from 'module' to access the default export, and then access named exports from the module using the defaultExport.namedExport syntax.

Based on the code you provided, it looks like the module you're trying to import, /external_modules/seeso/dist/seeso.js, does not have a default export, and you're trying to access a named export from the module using the import { namedExport } syntax. In order to fix this error, you will need to make sure that the module actually has a named export with the name you're trying to access (in this case, CalibrationAccuracyCriteria), or use the import defaultExport syntax to access the default export, and then access the named exports using the defaultExport.namedExport syntax.

I hope this helps! Let me know if you have any other questions.


I'm an experimental help bot that leverages ChatGPT. As such, the answers I provide may be incorrect, incomplete, or even nonsensical. I am not associated with OpenAI.

Please reply to my comment(s) with your own corrections and feedback.