Comments (27)
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.
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.
I installed it from npm and that one has a dist folder.
from angular-hint.
+1
from angular-hint.
👍 I like to add it to a rails project using rails-assets.org.
from angular-hint.
+1
from angular-hint.
+1
from angular-hint.
+1
from angular-hint.
+1
from angular-hint.
+1
from angular-hint.
+1
from angular-hint.
+1
from angular-hint.
this! I just want to debug not build things!
from angular-hint.
@Dennis-Janssen is correct, you should be including this from npm
from angular-hint.
Why does angular provide a bower install but angular-hint does not?
from angular-hint.
@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.
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.
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.
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.
@cmperez I have the same problem no dist/ folder in either the npm or bower installed versions
from angular-hint.
@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.
@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.
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 buildmodule.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.
@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.
@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.
@ouchxp better do that, its ready to use. but with node
from angular-hint.
@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)
- RFC: Improving hints related to $parse HOT 1
- causing infinite digests on angular material wesbite
- $watch override makes one-time bindings in expressions to never clear the associated watch HOT 2
- Incorrectly reports digest time HOT 2
- TypeError: Cannot read property 'name' of undefined at module.exports HOT 15
- Error when loading angular-hint with requirejs HOT 7
- Validate directive / component definition HOT 1
- Script Error in requirejs environment, cannot load angular-hint. HOT 2
- Not seeing any warning /Error on console.
- Log / Warn for naming collisions in registerables (directives, controllers, filters etc.)
- hint.js giving error, Cannot read property 'name' of undefined HOT 2
- A semicolon error
- dist angular-hint.js file to be used without requirejs? HOT 7
- NPM install fails HOT 1
- Reconsidering bower? HOT 4
- humanReadableWatchExpression error on app load HOT 2
- Why controllers, dom and directives not working? HOT 1
- "$event is undefined"
- Unexpected end of expression when using 'angular-ui-bootstrap' HOT 4
- A bower-angular-hint would be nice HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from angular-hint.