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
{{ message }}
This repository has been archived by the owner on Mar 24, 2019. It is now read-only.
I personally cannot speak for require as I use SystemJS (but even then, I do not use SystemJS with p2).
I would guess that the following line may need to be added to at the bottom of the p2.d.ts file. Can you try it?
declare module 'p2' {
export = p2;
}
That might fix your p2 error. If you are using ES6 or a new version of typescript, I think it needs to be
declare module 'p2' {
export default p2;
}
But a lot of this is guesswork. All my projects still use the trusty script tag apart from one project which I am working on in my free time with SystemJS.... I hope someone else may be able to chip in if this does not work.
I've, downloaded the p2 package via npm for nodejs.
How do I use the p2.d.ts with this package? Can you give an example?
The text was updated successfully, but these errors were encountered: