Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

can not be able to use in browser env #2328

Open
shixiaobao17145 opened this issue Nov 4, 2022 · 0 comments
Open

can not be able to use in browser env #2328

shixiaobao17145 opened this issue Nov 4, 2022 · 0 comments

Comments

@shixiaobao17145
Copy link

shixiaobao17145 commented Nov 4, 2022

I'm trying to build the demo in doc for the browser following this example: https://meta.stoplight.io/docs/spectral/eb68e7afd463e-spectral-in-java-script#browser, but just can't be able to make it pass the build process.

The error says:

ERROR in ./node_modules/@stoplight/json-ref-readers/file.js 3:13-26
Module not found: Error: Can't resolve 'fs' in '/home...

ERROR in ./src/test.mjs 2:0-87
Module not found: Error: Default condition should be the last one

I've made the simplest example online project here to reproduce these errors: https://stackblitz.com/edit/github-r4qodx , run npm run build will see the errors.

Since we have this example in the docs, it supposes to work in the browser, could you help to identify these issues? Thanks a lot!

The second probably can be fixed by referring to this articel:https://issueantenna.com/repo/bcakmakoglu/revue-draggable/issues/223

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants