Skip to content
This repository has been archived by the owner on Feb 27, 2019. It is now read-only.

How can we add and use new @types on fountain v1.0.0-rc2? #67

Open
pablorsk opened this issue Dec 21, 2016 · 0 comments
Open

How can we add and use new @types on fountain v1.0.0-rc2? #67

pablorsk opened this issue Dec 21, 2016 · 0 comments

Comments

@pablorsk
Copy link

pablorsk commented Dec 21, 2016

I have a problem with:

const req = require.context('./', true, /\.(controller|component)\.(ts|js)$/);

Return

(8,21): error TS2339: Property 'context' does not exist on type 'NodeRequire'.

With v1.0.0-rc1 work perfectly, but with this new version rc2 don't.

I try adding this types with:

npm install --save-dev @types/webpack @types/webpack-env

And adding this on types section on tsconfig.ts

            "webpack",
            "webpack-env"

But don't work.

This is my .yo:

{
  "generator-fountain-angular1": {
    "version": "1.0.0-rc2",
    "props": {
      "framework": "angular1",
      "modules": "webpack",
      "js": "typescript",
      "ci": [],
      "css": "scss",
      "resolved": "/usr/lib/node_modules/generator-fountain-webapp/node_modules/generator-fountain-angular1/generators/app/index.js",
      "namespace": "fountain-angular1",
      "argv": {
        "remain": [],
        "cooked": [],
        "original": []
      },
      "sample": "todoMVC",
      "router": "uirouter"
    }
  }
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant