-
Notifications
You must be signed in to change notification settings - Fork 519
When creating from YO template keep getting missing packages #859
Comments
While I don't get the missing packages and I can build everything locally...when I use my build server I am getting the TS2322 error above too. Hope someone knows why! |
What's your node_modules Typescript that got installed, it might be one where type inference got updated heavily, and can bring these types of errors. Is it 2.2+ ? |
This is very bizarre. It compiles perfectly on my machine, but on my build server it does not. The issue is actually around the code and it think a LATER version of Typescript is on the build server. You cannot do Component<void,void>, but instead mus do Component<{},{}>. should be This fixes the compile issue. @SteveSandersonMS might need to change the template? |
I just checked and the error doesn't occur with TypeScript 2.2.2 (which is the latest at the time of writing) in combination with the latest 3rd-party packages. @waynebrantley Maybe your CI server is using cached packages. Or if you can track this down to a specific package version difference that you think will be affecting others, please let us know! Closing as it appears to be OK now. |
@SteveSanderson Following the steps on this page: http://blog.stevensanderson.com/2016/05/02/angular2-react-knockout-apps-on-aspnet-core/ I chose a React and Redux project. The site ran fine in production but when I switched to development (following step 5), I too got the error below when running the site in the browser (i.e. http://localhost:5000/): ERROR in [at-loader] ./ClientApp/components/Layout.tsx:13:21 I have: NPM -v : 4.2.0 |
The same thing happens to me, the same error. Also use those versions (the latter) of NPM and Node: NPM -v : 4.2.0 |
@8enSmith @SpyRefused Sorry for the inconvenience. This is now fixed in |
@SteveSandersonMS thank you very much! |
@SteveSandersonMS thanks for the quick fix. |
Updated the NPM and YO packages then ran the tool to generate the project. I get the following error:
`
When I open the project in VS 2017 and run the project I get missing packages:
I then run NPM to install the missing packages then run webpack manually to generate the JS files. This however gives me the following:
I've reinstalled NPM and all packages, cleared out the cache, etc... not sure what else I can do. Any help would be great.
NPM -v : 4.4.4
Node -v : 7.8.0
Thanks.
The text was updated successfully, but these errors were encountered: