Giter VIP home page Giter VIP logo

Comments (5)

jashsayani avatar jashsayani commented on June 17, 2024 1

You may need to add fusion-plugin-universal-events to your project

That fixed it! Should be added when you run yarn create fusion-app my-fusion-app

peer dependency was missing so I added it

Perfect!

from fusion-cli.

AlexMSmithCA avatar AlexMSmithCA commented on June 17, 2024

This is most likely caused by being on yarn >1.10.0 and not on the latest version of fusion-cli

You can fix this by running either uber-web upgrade --match fusion --force (to upgrade all fusion packages in lockstep), yarn upgrade fusion-cli (to upgrade only fusion-cli), or downgrading yarn (via brew, but not recommended since new machines may not have brew formulas for older yarn versions)

(From FusionJS - fusion dev EADDRINUSE)

Could you give that a try and let us know if that resolves it?

from fusion-cli.

jashsayani avatar jashsayani commented on June 17, 2024

I cant access the instance of Stack Overflow (its probably for Uber employees).

uber-web upgrade --match fusion --force

I dont have uber-web. Is this an uber internal cli?

yarn upgrade fusion-cli

Just ran this, and it blew up (when I run yarn dev):

error: (client) ./node_modules/fusion-plugin-react-router/dist/browser.es2017.es.js
Module not found: Error: Can't resolve 'fusion-plugin-universal-events' in '/Users/user/Development/fusion-app/node_modules/fusion-plugin-react-router/dist'

from fusion-cli.

AlexMSmithCA avatar AlexMSmithCA commented on June 17, 2024

Ah yeah, uber-web upgrade is an internal CLI utility we use to upgrade Fusion dependencies (built on top of yarn upgrade).

Ideally you are on the latest versions for all fusion-* packages (which that tool would help with). Does yarn upgrade-ing all of the Fusion.js packages resolve this?

You may need to add fusion-plugin-universal-events to your project if you do not have it already, as fusion-plugin-react-router has a peerDependency on it.

from fusion-cli.

rtsao avatar rtsao commented on June 17, 2024

error: (client) ./node_modules/fusion-plugin-react-router/dist/browser.es2017.es.js
Module not found: Error: Can't resolve 'fusion-plugin-universal-events' in '/Users/user/Development/fusion-app/node_modules/fusion-plugin-react-router/dist'

I actually ran into this myself recently, the peer dependency was missing so I added it: fusionjs/fusion-plugin-react-router@7c9ffb4. But this hasn't been published in a new version just yet.

from fusion-cli.

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.