Code Monkey home page Code Monkey logo

Comments (8)

skellock avatar skellock commented on July 4, 2024

Hey, I'm not following what you're saying here.

Could you rephrase it for me?

Thanks.

from ignite-andross.

ruddell avatar ruddell commented on July 4, 2024

To reproduce:

  • Generate a default app - don't have IGNITE_PLUGIN_PATH set as an env variable
  • Open package.json, the boilerplate is linked by file path instead of npm package

For example, I see "ignite-ir-boilerplate": "file:/private/tmp/ignite/MyApp/node_modules/ignite-ir-boilerplate",

from ignite-andross.

skellock avatar skellock commented on July 4, 2024

Woah! Thanks! I'm going to see if I can reproduce this here. Yikes.

Thanks for the clarification.

from ignite-andross.

skellock avatar skellock commented on July 4, 2024

Confirmed.

From my newly made package.json:

"ignite-ir-boilerplate": "file:/Users/steve/src/sandbox/ignite/Test/node_modules/ignite-ir-boilerplate",

This line is probably the cause. We need to be installing from npm, not locally.

Thanks again.

from ignite-andross.

skellock avatar skellock commented on July 4, 2024

Not so straight forward. I think we might need to introduce another switch for this. I can see some situations where you would want to install the directory.

Most of the time it should be from npm, so I do consider this a bug.

The workaround for now is to just manually change your package.json to the right answer. Sorry, I know that's lame, but we're going to have to discuss what the right solution is.

Thanks for the help guys!

from ignite-andross.

jamonholmgren avatar jamonholmgren commented on July 4, 2024

I've run into this issue as well. I do think we need a flag -- or detect when we are initially installing from a path and follow suit.

from ignite-andross.

ruddell avatar ruddell commented on July 4, 2024

I tested the fix and here's what I found:

  • Works (from npm): ignite new MyApp -b ignite-ir-boilerplate
  • Works (local clone, full path): ignite new MyApp -b /private/tmp/ignite/ignite-ir-boilerplate/
  • Broken (local clone, relative path): ignite new MyApp -b ./ignite-ir-boilerplate
    • The app generates fine but the ignite add step is broken
? What animation library will you use? none
✖ /private/tmp/ignite/MyApp/MyApp/ignite-ir-boilerplate was not able to be installed. Is it a valid NPM module?
----------
Command failed: yarn add /private/tmp/ignite/MyApp/MyApp/ignite-ir-boilerplate --dev
error Couldn't find package "/private/tmp/ignite/MyApp/MyApp/ignite-ir-boilerplate" on the "npm" registry.

----------
✔ added ignite-standard in 23.48s

from ignite-andross.

GantMan avatar GantMan commented on July 4, 2024

Good catch! Easy enough to fix. We should just detect paths and force path to render full for us.

from ignite-andross.

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.