The error message suggests that you are trying to export a default value from a module called router, but the module does not have any exports.

To fix this issue, you need to make sure that the router module has a default export defined. Here's an example of how you can define a default export in a module:

// router.js
const router = {
  // router implementation...
};

export default router;

Then, when importing the router module, you can use the router identifier to access the default export:

import router from './router';

Make sure that the router module actually defines a default export and that the import statement is correctly referencing the file path

export default imported as router was not found in router module has no exports

原文地址: http://www.cveoy.top/t/topic/ilDc 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录