Navigation

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Popular
    • Tags
    • Users
    • Groups
    1. Home
    2. gib96
    G
    • Profile
    • Following 0
    • Followers 0
    • Topics 2
    • Posts 4
    • Best 0
    • Groups 0

    gib96

    @gib96

    0
    Reputation
    210
    Profile views
    4
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    gib96 Unfollow Follow

    Latest posts made by gib96

    • RE: Look for general node.js forum

      Thanks both for your replies.

      Julian, I appreciate the warm welcome, but I've been told that nodebb.org is about the forum software nodebb, not about node in general. I don't mind coming here to ask my node questions as long as it's understood that it usually won't be about nodebb.

      posted in General Discussion
      G
      gib96
    • Look for general node.js forum

      Hello,

      Can someone please tell me if there is a general node.js forum out there where one can ask questions and learn? Please don't say StackOverflow.

      I'd ask node.js questions here but this is more for nodebb.

      posted in General Discussion
      G
      gib96
    • RE: Cannot find type definition file for 'jquery'

      Here is my tfconfig.json file:

      {
      "compilerOptions": {
      "baseUrl": "./src",
      "noEmitOnError": true,
      "noImplicitAny": true,
      "outDir": "./scripts/bowtie",
      "outFile": "./scripts/bowtie/bowtie.js",
      "sourceMap": false,
      "declaration": false,
      "target": "es5",
      "typeRoots": [
      "node_modules/@types"
      ],
      "types": [
      "jquery",
      "d3"
      ]
      },
      "exclude": [
      "obj",
      "node_modules",
      "WebAPI/node_modules",
      "scripts/bowtie",
      "../node_modules/"
      ],
      "compileOnSave": true
      }

      Doesn't have typeSources at all.

      It's in the WebAPI folder. Is this the right place for it?

      If I were to let typeSources be undefined, would this be the right way to do it:

      {
      "compilerOptions": {
      "baseUrl": "./src",
      "noEmitOnError": true,
      "noImplicitAny": true,
      "outDir": "./scripts/bowtie",
      "outFile": "./scripts/bowtie/bowtie.js",
      "sourceMap": false,
      "declaration": false,
      "target": "es5",
      "typeRoots": [
      "node_modules/@types"
      ],
      "types": [
      "jquery",
      "d3"
      ]
      },
      "typeSources": "undefined",
      "exclude": [
      "obj",
      "node_modules",
      "WebAPI/node_modules",
      "scripts/bowtie",
      "../node_modules/"
      ],
      "compileOnSave": true
      }

      If I were to add "@types/jquery" to the file, would this be the right way to do it?

      {
      "compilerOptions": {
      "baseUrl": "./src",
      "noEmitOnError": true,
      "noImplicitAny": true,
      "outDir": "./scripts/bowtie",
      "outFile": "./scripts/bowtie/bowtie.js",
      "sourceMap": false,
      "declaration": false,
      "target": "es5",
      "typeRoots": [
      "node_modules/@types"
      ],
      "types": [
      "jquery",
      "d3"
      ]
      },
      "typeSources": ["node_modules/@types"],
      "exclude": [
      "obj",
      "node_modules",
      "WebAPI/node_modules",
      "scripts/bowtie",
      "../node_modules/"
      ],
      "compileOnSave": true
      }

      "Just FYI, this forum is for the Node.js based forum software NodeBB, it's not really a forum for help with general Node.js or TypeScript issues. A better place for that is SlackOverflow."

      Thanks for helping out even though this isn't the right forum for this kind of question. Ironically, stackoverflow is NOT a better place for this kind of question because no one ever replies even when I'm perfectly on topic.

      Do you know any forums specific to node?

      posted in General Discussion
      G
      gib96
    • Cannot find type definition file for 'jquery'

      Hello,

      I'm getting an error in Visual Studio 2015 when I try to compile my WebAPI project:

      "Cannot find type definition file for 'jquery'"

      I'm setting up my project using node.js.

      The main folder for the project is RiskAlive9, and under that folder is a set of sub-projects:

      -Core
      -Database
      -Test
      -Web
      -WebAPI

      Everything compiles properly except for WebAPI which is giving me the error above.

      Here's how I installed node, bower, and typescript:

      npm install

      This created a node_modules folder in the main folder (RiskAlive9).

      npm install -g bower

      This installed bower, gulp, and a bunch of pluggins for gulp.

      bower install

      This created a bower_components folder in the main folder (RiskAlive9).

      npm install typescript@2.4.1

      This installed typescript 2.4.1

      npm install "@types/jquery"

      This created a @types folder in the node_modules folder with a jquery folder inside it.

      Yet WebAPI is still saying it cannot find the type definition file for jquery.

      So I tried copying node_modules into the WebAPI folder. This fixed 99% of the errors (cannot find type definition file was not the only one), but also brought up a few new errors.

      I'm wondering: does installing node typically mean installing it for every project in your solution (such that each sub-folder that needs to use node will have a node_modules folder)? Or isn't there a way to get all projects in your solution to use the main node_modules folder?

      posted in General Discussion
      G
      gib96