Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error TS2339: Property 'context' does not exist on type 'NodeRequire'. #434

Closed
GarrettVD opened this issue Mar 18, 2016 · 3 comments
Closed

Comments

@GarrettVD
Copy link

  • I'm submitting a ...
    [* ] bug report
    [ ] feature request
    [ ] question about the decisions made in the repository
  • Do you want to request a feature or report a bug?
    Bug
  • What is the current behavior?
    When attempting to use require.context, after executing npm start, an exception is thrown.
  • If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem
    In src/app/app.ts, enter the following: var testContext = require.context('./home', true, /\.ts/);. When attempting a build, you will receive the error: error TS2339: Property 'context' does not exist on type 'NodeRequire'.
  • Please tell us about your environment:
  • Angular version: 2.0.0-beta.8
  • Browser: [all]
@PatrickJS
Copy link
Owner

should be fixed via c811a45 can you pull latest and make sure you run typings install

@PatrickJS
Copy link
Owner

I'm going to close this but if you still have the error please reopen or create another issue, thanks!

@GarrettVD
Copy link
Author

Thanks, just testing it now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants