You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
See #35 for a related discussion. The jist of it is that loading globally is discouraged and sometimes doesnt work correctly (for reasons that are unknown to me). TypeScript also recently removed the preferGlobal flag.
That said, ts-loader doesn't do anything special with regards to loading TypeScript locally or globally. It simply does require('typescript') and let's node take care of the rest.
See this comment for a possible workaround using npm link.
I just upgraded after quite a while and get the error "Could not load typescript. Try in stalling with
npm install typescript
".But I just updated my global npm typescript module, and I don't really want to install typescript for every small project.
Can I somehow point to the local typescript compiler?
npm list typescript -g
C:\Users***\AppData\Roaming\npm
└── typescript@1.7.3
The text was updated successfully, but these errors were encountered: