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

Outdated information #2

Open
kotpal opened this issue Mar 10, 2017 · 0 comments
Open

Outdated information #2

kotpal opened this issue Mar 10, 2017 · 0 comments

Comments

@kotpal
Copy link

kotpal commented Mar 10, 2017

Lot of information is outdated. Please fix the article and the code.

For example, --ambient on typings is deprecated

webpack.config.js: resolve, extensions shouldn't have empty string ('')
wwwroot\client.js and wwwroot\server.js should have the correct path (./../Scripts/app)

Even then webpack doesn't work.

Hash: 81931e42b6266813a280
Version: webpack 1.12.9
Time: 256ms
           Asset     Size  Chunks             Chunk Names
client.bundle.js  2.05 kB       0  [emitted]  client
server.bundle.js  2.05 kB       1  [emitted]  server
   [0] ./client.js 185 bytes {0} [built]
   [0] ./server.js 185 bytes {1} [built]
    + 1 hidden modules

ERROR in ../~/expose-loader?Components!../Scripts/app/index.js
Module not found: Error: Cannot resolve 'file' or 'directory' WebAppTSReact\WebAppTSReact\Scripts\app\index.js in WebAppTSReact\WebAppTSReact\Scripts\app
 @ ../~/expose-loader?Components!../Scripts/app/index.js 1:40-144

Even after all this, there is still a TS2665 error on react\index.d.ts

Error	TS2665	Module augmentation cannot introduce new names in the top level scope.

Overall, there is no usable project generated by following the article or the code

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

1 participant