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
test.js (node: v18.13.0)
"new InvalidInputError()" must not be directly called.
This error class should be created like this instead:
export const InvalidInputError = custom.subclass('InvalidInputError')
at validateSubclass ./node_modules/.pnpm/modern-errors@5.5.0/node_modules/modern-errors/build/src/subclass/validate.js:21
at new ModernError ./node_modules/.pnpm/modern-errors@5.5.0/node_modules/modern-errors/build/src/main.js:26
at new custom src/test.js:7:12
at new InvalidInputError ./node_modules/.pnpm/modern-errors@5.5.0/node_modules/modern-errors/build/src/subclass/custom.js:21
at src/test.js:14:0
Code editor version
Intellij: 2022.3.1
OS name and version
OSX
The text was updated successfully, but these errors were encountered:
Issue description or question
I am facing an issue when I am using quokka with modern-errors. It runs fine with node cli. These library is
esm only
libraryIs this issue related to Quokka not outputting the expected results of your code?: Yes
Sample code
Sample repository link
bhvngt/modern-error-quokka
Quokka.js Console Output
Code editor version
Intellij: 2022.3.1
OS name and version
OSX
The text was updated successfully, but these errors were encountered: