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
In some places (as far as I can tell in src/codeblock.component.scss and src/codeblock.component.ts), files in the directory ../node_modules/ are referenced.
The reference in the .scss file is resolved during the build process of ng2-prism and thus does not appear in the npm package, but the reference in the .ts file remains in the resulting .d.ts file.
When depending on ng2-prism in a project, the file structure will look like this (using NPM v3):
The reference to ../node_modules/angular2/typings/browser.d.ts in codeblock.component.d.ts can thus not be resolved, as the node_modules folder is higher in the hierarchy. This results in a tsc compilation error.
I don't know what's the best way to resolve this issue, but I would assume the triple slash reference to angular2/typings/browser.d.ts is not needed and can be removed?
The text was updated successfully, but these errors were encountered:
In some places (as far as I can tell in
src/codeblock.component.scss
andsrc/codeblock.component.ts
), files in the directory../node_modules/
are referenced.The reference in the
.scss
file is resolved during the build process of ng2-prism and thus does not appear in the npm package, but the reference in the.ts
file remains in the resulting.d.ts
file.When depending on ng2-prism in a project, the file structure will look like this (using NPM v3):
The reference to
../node_modules/angular2/typings/browser.d.ts
incodeblock.component.d.ts
can thus not be resolved, as thenode_modules
folder is higher in the hierarchy. This results in a tsc compilation error.I don't know what's the best way to resolve this issue, but I would assume the triple slash reference to
angular2/typings/browser.d.ts
is not needed and can be removed?The text was updated successfully, but these errors were encountered: