Code Monkey home page Code Monkey logo

Comments (27)

 avatar commented on May 6, 2024

You don't need to use requirejs. You have to include the angular-hint.js from the dist/ folder, that's all.

from angular-hint.

thkoch2001 avatar thkoch2001 commented on May 6, 2024

I searched angular-hint with bower, installed it and there is no dist folder. How should I get angular-hint? bower, npm, tar.gz?

from angular-hint.

 avatar commented on May 6, 2024

I installed it from npm and that one has a dist folder.

from angular-hint.

daric81 avatar daric81 commented on May 6, 2024

+1

from angular-hint.

bopm avatar bopm commented on May 6, 2024

👍 I like to add it to a rails project using rails-assets.org.

from angular-hint.

bfdill avatar bfdill commented on May 6, 2024

+1

from angular-hint.

TusharaFernando avatar TusharaFernando commented on May 6, 2024

+1

from angular-hint.

jieryn avatar jieryn commented on May 6, 2024

+1

from angular-hint.

NateRedding avatar NateRedding commented on May 6, 2024

+1

from angular-hint.

jonsamwell avatar jonsamwell commented on May 6, 2024

+1

from angular-hint.

pmendelski avatar pmendelski commented on May 6, 2024

+1

from angular-hint.

pkalkman avatar pkalkman commented on May 6, 2024

+1

from angular-hint.

apricot13 avatar apricot13 commented on May 6, 2024

this! I just want to debug not build things!

from angular-hint.

SomeKittens avatar SomeKittens commented on May 6, 2024

@Dennis-Janssen is correct, you should be including this from npm

from angular-hint.

TusharaFernando avatar TusharaFernando commented on May 6, 2024

Why does angular provide a bower install but angular-hint does not?

from angular-hint.

apricot13 avatar apricot13 commented on May 6, 2024

@SomeKittens not everyone uses npm. @TusharaFernando is correct, if angular themselves provide a bower version surely you could at least include a /dist version in this repository so that those of us using bower don't have to use two systems.

from angular-hint.

raulramaya avatar raulramaya commented on May 6, 2024

While we use NPM and Bower, its confusing to have angular itself available in both but not angular-hint. Think maintainability with larger teams. Having to remember that, albeit small, difference adds to complexity...

from angular-hint.

QuijoteShin avatar QuijoteShin commented on May 6, 2024

Just not all of us use npm/bower etc. so have to install a framework to make it work its an unnecessary effort, and will only take you 3 secs to compile and upload it to your rep, (we all win)

from angular-hint.

cmperez avatar cmperez commented on May 6, 2024

Having the same issue as original poster:

ReferenceError: require is not defined
angular.hint = require('angular-hint-log');

And to confirm, there is no dist/ folder in either the npm or bower installed versions.

from angular-hint.

ouchxp avatar ouchxp commented on May 6, 2024

@cmperez I have the same problem no dist/ folder in either the npm or bower installed versions

from angular-hint.

QuijoteShin avatar QuijoteShin commented on May 6, 2024

@cmperez require() is used by node (as for other systems), and @ouchxp dest will not appear because was added to the .gitignore , anyways the hints.js is what are you looking, but you need nodejs or compile hints.js

from angular-hint.

ouchxp avatar ouchxp commented on May 6, 2024

@QuijoteShin
Tried to build it for serveral hours. Still fail to generate dest folder.

D:\angular\THQFrontEnd\node_modules\angular-hint>npm run build

> [email protected] build D:\angular\THQFrontEnd\node_modules\angular-hint
> gulp build

module.js:338
    throw err;
          ^
Error: Cannot find module 'st'
    at Function.Module._resolveFilename (module.js:336:15)
    at Function.Module._load (module.js:278:25)
    at Module.require (module.js:365:17)
    at require (module.js:384:17)
    at Object.<anonymous> (D:\angular\THQFrontEnd\node_modules\angular-hint\gulpfile.js:6:10)
    at Module._compile (module.js:460:26)
    at Object.Module._extensions..js (module.js:478:10)
    at Module.load (module.js:355:32)
    at Function.Module._load (module.js:310:12)
    at Module.require (module.js:365:17)

npm ERR! Windows_NT 6.3.9600
npm ERR! argv "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "run" "build"
npm ERR! node v0.12.4
npm ERR! npm  v2.10.1
npm ERR! code ELIFECYCLE
npm ERR! [email protected] build: `gulp build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] build script 'gulp build'.
npm ERR! This is most likely a problem with the angular-hint package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     gulp build
npm ERR! You can get their info via:
npm ERR!     npm owner ls angular-hint
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     D:\angular\THQFrontEnd\node_modules\angular-hint\npm-debug.log

from angular-hint.

welbornio avatar welbornio commented on May 6, 2024

See if this works for you: https://github.com/welbornio/angular-hint-bower

On Tue, Jun 23, 2015 at 3:39 PM, Nan [email protected] wrote:

@QuijoteShin https://github.com/QuijoteShin

Tried to build it for serveral hours. Still fail to generate dest folder.

D:\angular\THQFrontEnd\node_modules\angular-hint>npm run build

[email protected] build D:\angular\THQFrontEnd\node_modules\angular-hint
gulp build

module.js:338
throw err;
^
Error: Cannot find module 'st'
at Function.Module._resolveFilename (module.js:336:15)
at Function.Module._load (module.js:278:25)
at Module.require (module.js:365:17)
at require (module.js:384:17)
at Object. (D:\angular\THQFrontEnd\node_modules\angular-hint\gulpfile.js:6:10)
at Module._compile (module.js:460:26)
at Object.Module._extensions..js (module.js:478:10)
at Module.load (module.js:355:32)
at Function.Module._load (module.js:310:12)
at Module.require (module.js:365:17)

npm ERR! Windows_NT 6.3.9600
npm ERR! argv "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" "run" "build"
npm ERR! node v0.12.4
npm ERR! npm v2.10.1
npm ERR! code ELIFECYCLE
npm ERR! [email protected] build: gulp build
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] build script 'gulp build'.
npm ERR! This is most likely a problem with the angular-hint package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! gulp build
npm ERR! You can get their info via:
npm ERR! npm owner ls angular-hint
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR! D:\angular\THQFrontEnd\node_modules\angular-hint\npm-debug.log


Reply to this email directly or view it on GitHub
#55 (comment)
.

from angular-hint.

QuijoteShin avatar QuijoteShin commented on May 6, 2024

@ouchxp delete ./node_modules do a" npm install" and then "npm run build". you will have a clean "node_modules" . it works for me it that way

from angular-hint.

ouchxp avatar ouchxp commented on May 6, 2024

@QuijoteShin
Still not working, here is the npm-debug.log file. I probably will go with @welbornio 's approach.

0 info it worked if it ends with ok
1 verbose cli [ 'C:\\Program Files\\nodejs\\\\node.exe',
1 verbose cli   'C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js',
1 verbose cli   'run',
1 verbose cli   'build' ]
2 info using [email protected]
3 info using [email protected]
4 verbose run-script [ 'prebuild', 'build', 'postbuild' ]
5 info prebuild [email protected]
6 info build [email protected]
7 verbose unsafe-perm in lifecycle true
8 info [email protected] Failed to exec build script
9 verbose stack Error: [email protected] build: `gulp build`
9 verbose stack Exit status 1
9 verbose stack     at EventEmitter.<anonymous> (C:\Program Files\nodejs\node_modules\npm\lib\utils\lifecycle.js:213:16)
9 verbose stack     at EventEmitter.emit (events.js:110:17)
9 verbose stack     at ChildProcess.<anonymous> (C:\Program Files\nodejs\node_modules\npm\lib\utils\spawn.js:24:14)
9 verbose stack     at ChildProcess.emit (events.js:110:17)
9 verbose stack     at maybeClose (child_process.js:1015:16)
9 verbose stack     at Process.ChildProcess._handle.onexit (child_process.js:1087:5)
10 verbose pkgid [email protected]
11 verbose cwd D:\angular\THQFrontEnd\node_modules\angular-hint
12 error Windows_NT 6.3.9600
13 error argv "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "run" "build"
14 error node v0.12.4
15 error npm  v2.10.1
16 error code ELIFECYCLE
17 error [email protected] build: `gulp build`
17 error Exit status 1
18 error Failed at the [email protected] build script 'gulp build'.
18 error This is most likely a problem with the angular-hint package,
18 error not with npm itself.
18 error Tell the author that this fails on your system:
18 error     gulp build
18 error You can get their info via:
18 error     npm owner ls angular-hint
18 error There is likely additional logging output above.
19 verbose exit [ 1, true ]

from angular-hint.

QuijoteShin avatar QuijoteShin commented on May 6, 2024

@ouchxp better do that, its ready to use. but with node

from angular-hint.

ouchxp avatar ouchxp commented on May 6, 2024

@welbornio @QuijoteShin I've added the hint.js and added ng-hint attribute, but it does not show any log message, any thoughts?

Found it... #81

from angular-hint.

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.