Giter Site home page Giter Site logo

Comments (8)

scottnath avatar scottnath commented on July 20, 2024

I'm seeing the same thing. Looking at bower.json I don't see require.js in there. I did a fresh install on a new computer of generator-angular this morning.

I tried adding require to bower.json, but that didn't help:

$ bower install
bower requirejs#~2.1.10         cached git://github.com/jrburke/requirejs-bower.git#2.1.14
bower requirejs#~2.1.10       validate 2.1.14 against git://github.com/jrburke/requirejs-bower.git#~2.1.10
bower requirejs#~2.1.10        install requirejs#2.1.14

requirejs#2.1.14 bower_components/requirejs

$ grunt build
Warning: Task "requirejs:dist" not found. Use --force to continue.

Aborted due to warnings.

Using --force didn't help either.

thanks,
Scott

from generator-angular-require.

scottnath avatar scottnath commented on July 20, 2024

Was there perhaps a structural change to generator-angular?

It looks like bower_components is now in the top directory instead of /app. Older versions had bower_components like so:
/app/bower_components

FWIW, I am able to get generator-angular to build and install without issue.

thanks,
Scott

from generator-angular-require.

aaronallport avatar aaronallport commented on July 20, 2024

Fixed in f0c5e17 - will be in next publish to npm

from generator-angular-require.

scottnath avatar scottnath commented on July 20, 2024

Thank you @aaronallport
Will this also fix bower_components not being inside /app? Is that actually part of the problem at all?

thanks,
Scott

from generator-angular-require.

aaronallport avatar aaronallport commented on July 20, 2024

The ref to requirejs under bower components is correct - the next build to npm will resolve (local testing this evening looks good, but due to the way in which main.js is now written, generator tests are failing, which is what I'm resolving today/tomorrow)

from generator-angular-require.

scottnath avatar scottnath commented on July 20, 2024

Excellent excellent. Thank you for fixing that!

from generator-angular-require.

aaronallport avatar aaronallport commented on July 20, 2024

Fixed in https://github.com/aaronallport/generator-angular-require/releases/tag/v0.2.6 - This has been published to NPM

from generator-angular-require.

scottnath avatar scottnath commented on July 20, 2024

Confirmed! Thanks for the fix!

from generator-angular-require.

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.