GithubHelp home page GithubHelp logo

Comments (7)

Drethic avatar Drethic commented on August 10, 2024 1

After installing mobx, markdown-viewer, and ui-kit the system started work. I also tested with 4.0.0-beta.16 and that fired up without any additional installs.

Thank you for all your help on this. And not to worry about the delay. I saw all the activity to get 4.0.0 out the door and figured this bug would be resolved with that update to limit churn between versions.

from json-schema-viewer.

mpodlasin avatar mpodlasin commented on August 10, 2024

Hey @Drethic could you share with us what version of @stoplight/ordered-object-literal package you have in our node_modules? 🤔

from json-schema-viewer.

Drethic avatar Drethic commented on August 10, 2024

This is from it's package.json:

  "name": "@stoplight/ordered-object-literal",
  "version": "1.0.1",

from json-schema-viewer.

mpodlasin avatar mpodlasin commented on August 10, 2024

If you update to 1.0.2 your problem should go away. :)

Let me know how it went.

from json-schema-viewer.

Drethic avatar Drethic commented on August 10, 2024

I ran yarn upgrade and verified @stoplight/ordered-object-literal incremented to 1.0.2. After starting I am now getting a new compile error:

Failed to compile.

./node_modules/@stoplight/json-schema-viewer/index.es.js
Module not found: Can't resolve '@stoplight/markdown-viewer' in '/path/to/project/schema-viewer/node_modules/@stoplight/json-schema-viewer'

To ensure my node_modules weren't corrupt from the upgrade I removed the whole node_modules directory, reran yarn install, verified ordered-object-literal was still 1.0.2, and after starting the react app the markdown-viewer error was still present.

edit 1:
I checked my node modules and @stoplight/markdown-viewer is not installed. I do see in the json-schema-viewer package.json that markdown-viewer is listed as a peerDependencies. yarn may not be picking up the need to install that with the base install command. I'd have to try with npm to see if I get the same results.

edit 2:
After installing with npm I do get a warning about needing several peer dependancies to include markdown viewer:
npm WARN @stoplight/[email protected] requires a peer of @stoplight/markdown-viewer@^3 but none is installed. You must install peer dependencies yourself.

Here is the full peer dependency message:

npm WARN @stoplight/[email protected] requires a peer of @stoplight/markdown-viewer@^3 but none is installed. You must install peer dependencies yourself.
npm WARN @stoplight/[email protected] requires a peer of @stoplight/ui-kit@^3 but none is installed. You must install peer dependencies yourself.
npm WARN @stoplight/[email protected] requires a peer of mobx@^5 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of mobx@^4.0.0 || ^5.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of react@^16.8.0 but none is installed. You must install peer dependencies yourself.
npm WARN @stoplight/[email protected] requires a peer of @stoplight/ui-kit@>=2 but none is installed. You must install peer dependencies yourself.
npm WARN @stoplight/[email protected] requires a peer of mobx@^5 but none is installed. You must install peer dependencies yourself.
npm WARN @babel/[email protected] requires a peer of @babel/core@^7.13.0 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of typescript@>=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta but none is installed. You must install peer dependencies yourself.

Not sure which of the other peer dependencies may be required but if there is a flag that needs to be passed on install to pull in these required packages can you please let me know? And your install docs may need to be updated to reflect that.

from json-schema-viewer.

mpodlasin avatar mpodlasin commented on August 10, 2024

Hmm I see. I'll take a look then. Hang in there, I'll come back to you.

Sorry this took so much time BTW.

@Drethic, currently we are working on [email protected], which is in beta, but fairly stable at this point (we use it in our projects) and will be tagged to 4.0.0 very soon. It's leaner and has more up-to-date dependencies, so should work better for you. Perhaps you want to give it a try?

from json-schema-viewer.

mpodlasin avatar mpodlasin commented on August 10, 2024

I installed CRA, then @stoplightio/json-schema-viewer and then peer dependencies from the package.json: mobx, @stoplightio/markdown-viewer and @stoplight/ui-kit and it works.

I had a fresh install, so 1.0.1 vs 1.0.2 of ordered-object-literal didn't affect me, because I instantly got the newer version.

So please try to replicate that setup.

If it still fails, please make a repo of your failing project and share it with me here.

If you can't share that project, please try to create a fresh one and replicate the same problem. Otherwise it will be tricky for me to help. 🙏

from json-schema-viewer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.