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
When using @stoplightio/elements with Vite.js it is not possible to build the because of the unmaintained @jsdevtools/ono. I figured it should be replaced by a more fitting alternative.
Current Behavior
When building elements with vite, I get the error can't convert undefined to object coming from these lines in "@jsdevtools/ono" bundles:
When using @stoplightio/elements with Vite.js it is not possible to build the because of the unmaintained
@jsdevtools/ono
. I figured it should be replaced by a more fitting alternative.Current Behavior
When building elements with vite, I get the error
can't convert undefined to object
coming from these lines in "@jsdevtools/ono" bundles:Expected Behavior
Use a maintained repository from error handling
Possible Workaround/Solution
Only solution is to replace this dependency by an empty one in Vite config but that could cause some issues... As I described here
Steps to Reproduce
nodePolyfills
with pluginvite-plugin-node-polyfills
commonjsOptions: { transformMixedEsModules: true }
build optionprismjs
and addimport 'prismjs';
at the top of main.tsxnpm run build
oryarn build
Environment
Latest version of elements with
@stoplight/json-schema-ref-parser@"^9.2.7"
The text was updated successfully, but these errors were encountered: