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
import { LoggerModes, JetLogger as Logger } from 'jet-logger';
^^^^^^^^^
SyntaxError: Named export'JetLogger' not found. The requested module 'jet-logger' 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 'jet-logger';
const { LoggerModes, JetLogger: Logger } = pkg;
Following the advice and replacing the import seems to fix the error:
The package jet-logger does not have any named export for JetLogger, that is probably causing the issue
ottodevs
changed the title
Loggers import in @ceramicnetwork/common is causing an error
JetLogger import in @ceramicnetwork/common is causing an error
Aug 19, 2022
This import seems to be causing an error:
js-ceramic/packages/common/src/loggers.ts
Line 1 in 7f458c8
Error:
Following the advice and replacing the import seems to fix the error:
The text was updated successfully, but these errors were encountered: