vue.runtime.esm.js:1442 SyntaxError: The requested module '/config.js' does not provide an export named 'default'
时间: 2024-05-15 16:19:38 浏览: 85
vue.config.js
This error message typically occurs when importing a module that does not have a default export. In this case, the module '/config.js' does not have a default export, so you cannot use the syntax `import config from '/config.js'`.
To fix this error, you can update your import statement to explicitly import the named export from the module:
```
import { someExport } from '/config.js';
```
Alternatively, you can add a default export to your '/config.js' module:
```
export default {
someProperty: 'value',
// other properties and methods
}
```
阅读全文