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
This appears to be the same as #37; I am receiving the error:
import { registerInterceptor } from 'axios-cached-dns-resolve';
^^^^^^^^^^^^^^^^^^^
SyntaxError: Named export 'registerInterceptor' not found. The requested module 'axios-cached-dns-resolve' is a CommonJS module, which may not support all module.exports as named exports.
CommonJS modules can always be imported via the default export, for example using:
import pkg from 'axios-cached-dns-resolve';
const { registerInterceptor } = pkg;
However, that advice does not work as this isn't a CJS module. Manually editing the package.json of axios-cached-dns-resolve to include "type": "module" fixes the issue.
The text was updated successfully, but these errors were encountered:
This appears to be the same as #37; I am receiving the error:
However, that advice does not work as this isn't a CJS module. Manually editing the
package.json
ofaxios-cached-dns-resolve
to include"type": "module"
fixes the issue.The text was updated successfully, but these errors were encountered: