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
With 803e140, I removed the a script tag for loading the applicationinsights-web package and instead switched to using an npm package for it. To get this to work, I had to alias the name of the package in workbench.js.
The package is namespaced under @microsoft and has its own typings, but I found that compilation would fail with "Module not found" if explicit typings weren't provided in the typings folder for it. (And from the comments in the xterm typings, this seems to be from a limitation in the gulp-tsb library?). Having the typings in a subfolder (i.e. in an @microsoft folder) would also not work, so I changed the name to remove the namespace.
The package is namespaced under @microsoft and has its own typings, but I found that compilation would fail with "Module not found" if explicit typings weren't provided in the typings folder for it.
Yeah, that's on purpose. For performance reasons we tell TS (via gulp-tsb) not to look up files but use what's streamed to it instead. That's why we have the typings folder. Doesn't it work when you copy the d.ts-file into that folder?
With 803e140, I removed the a script tag for loading the applicationinsights-web package and instead switched to using an npm package for it. To get this to work, I had to alias the name of the package in
workbench.js
.The package is namespaced under
@microsoft
and has its own typings, but I found that compilation would fail with "Module not found" if explicit typings weren't provided in the typings folder for it. (And from the comments in the xterm typings, this seems to be from a limitation in the gulp-tsb library?). Having the typings in a subfolder (i.e. in an@microsoft
folder) would also not work, so I changed the name to remove the namespace.Build worked fine locally, but then failed for the
optimize-vscode-reh-web
task with a module not found error forapplicationinsights-web
:https://dev.azure.com/monacotools/Monaco/_build/results?buildId=54106
We either need to be able to handle namespaced packages in the loader, or have some way of specifying an alias for the gulp task
cc @jrieken
The text was updated successfully, but these errors were encountered: