microsoft / ApplicationInsights-JS

Microsoft Application Insights SDK for JavaScript
MIT License
650 stars 240 forks source link

Error: Can't resolve '../ JavaScript/JavaScriptSDK.Interfaces/Context/xyz.ts' with webpack #521

Closed OneCyrus closed 6 years ago

OneCyrus commented 7 years ago

there are some missing files which are referenced in the bundle. webpack builds give mit the following warnings:

WARNING in ../node_modules/applicationinsights-js/bundle/ai.module.js
(Emitted value instead of an instance of Error) Cannot find source file '../JavaScript/JavaScriptSDK.Interfaces/Context/IApplication.ts': Error: Can't resolve '../
JavaScript/JavaScriptSDK.Interfaces/Context/IApplication.ts' in 'C:\xyz\myProject\node_modules\applicationinsights-js\bundle'
 @ ./index.tsx 7:31-64
 @ multi react-hot-loader/patch babel-polyfill ./index.tsx

WARNING in ../node_modules/applicationinsights-js/bundle/ai.module.js
(Emitted value instead of an instance of Error) Cannot find source file '../JavaScript/JavaScriptSDK.Interfaces/Context/IDevice.ts': Error: Can't resolve '../JavaS
cript/JavaScriptSDK.Interfaces/Context/IDevice.ts' in 'C:\xyz\myProject\node_modules\applicationinsights-js\bundle'
 @ ./index.tsx 7:31-64
 @ multi react-hot-loader/patch babel-polyfill ./index.tsx

WARNING in ../node_modules/applicationinsights-js/bundle/ai.module.js
(Emitted value instead of an instance of Error) Cannot find source file '../JavaScript/JavaScriptSDK.Interfaces/Context/IInternal.ts': Error: Can't resolve '../Jav
aScript/JavaScriptSDK.Interfaces/Context/IInternal.ts' in 'C:\xyz\myProject\node_modules\applicationinsights-js\bundle'
 @ ./index.tsx 7:31-64
 @ multi react-hot-loader/patch babel-polyfill ./index.tsx

WARNING in ../node_modules/applicationinsights-js/bundle/ai.module.js
(Emitted value instead of an instance of Error) Cannot find source file '../JavaScript/JavaScriptSDK.Interfaces/Context/ILocation.ts': Error: Can't resolve '../Jav
aScript/JavaScriptSDK.Interfaces/Context/ILocation.ts' in 'C:\xyz\myProject\node_modules\applicationinsights-js\bundle'
 @ ./index.tsx 7:31-64
 @ multi react-hot-loader/patch babel-polyfill ./index.tsx

WARNING in ../node_modules/applicationinsights-js/bundle/ai.module.js
(Emitted value instead of an instance of Error) Cannot find source file '../JavaScript/JavaScriptSDK.Interfaces/Context/IOperation.ts': Error: Can't resolve '../Ja
vaScript/JavaScriptSDK.Interfaces/Context/IOperation.ts' in 'C:\xyz\myProject\node_modules\applicationinsights-js\bundle'
 @ ./index.tsx 7:31-64
 @ multi react-hot-loader/patch babel-polyfill ./index.tsx

WARNING in ../node_modules/applicationinsights-js/bundle/ai.module.js
(Emitted value instead of an instance of Error) Cannot find source file '../JavaScript/JavaScriptSDK.Interfaces/Context/ISample.ts': Error: Can't resolve '../JavaS
cript/JavaScriptSDK.Interfaces/Context/ISample.ts' in 'C:\xyz\myProject\node_modules\applicationinsights-js\bundle'
 @ ./index.tsx 7:31-64
 @ multi react-hot-loader/patch babel-polyfill ./index.tsx

WARNING in ../node_modules/applicationinsights-js/bundle/ai.module.js
(Emitted value instead of an instance of Error) Cannot find source file '../JavaScript/JavaScriptSDK.Interfaces/Context/ISession.ts': Error: Can't resolve '../Java
Script/JavaScriptSDK.Interfaces/Context/ISession.ts' in 'C:\xyz\myProject\node_modules\applicationinsights-js\bundle'
 @ ./index.tsx 7:31-64
 @ multi react-hot-loader/patch babel-polyfill ./index.tsx

WARNING in ../node_modules/applicationinsights-js/bundle/ai.module.js
(Emitted value instead of an instance of Error) Cannot find source file '../JavaScript/JavaScriptSDK.Interfaces/Context/IUser.ts': Error: Can't resolve '../JavaScr
ipt/JavaScriptSDK.Interfaces/Context/IUser.ts' in 'C:\xyz\myProject\node_modules\applicationinsights-js\bundle'
 @ ./index.tsx 7:31-64
 @ multi react-hot-loader/patch babel-polyfill ./index.tsx

WARNING in ../node_modules/applicationinsights-js/bundle/ai.module.js
(Emitted value instead of an instance of Error) Cannot find source file '../JavaScript/JavaScriptSDK.Interfaces/Contracts/Generated/Base.ts': Error: Can't resolve
'../JavaScript/JavaScriptSDK.Interfaces/Contracts/Generated/Base.ts' in 'C:\xyz\myProject\node_modules\applicationinsights-js\bundle'
 @ ./index.tsx 7:31-64
 @ multi react-hot-loader/patch babel-polyfill ./index.tsx

WARNING in ../node_modules/applicationinsights-js/bundle/ai.module.js
(Emitted value instead of an instance of Error) Cannot find source file '../JavaScript/JavaScriptSDK.Interfaces/Contracts/Generated/Envelope.ts': Error: Can't reso
lve '../JavaScript/JavaScriptSDK.Interfaces/Contracts/Generated/Envelope.ts' in 'C:\xyz\myProject\node_modules\applicationinsights-js\bundle'
 @ ./index.tsx 7:31-64
 @ multi react-hot-loader/patch babel-polyfill ./index.tsx

WARNING in ../node_modules/applicationinsights-js/bundle/ai.module.js
(Emitted value instead of an instance of Error) Cannot find source file '../JavaScript/JavaScriptSDK.Interfaces/Contracts/Generated/SeverityLevel.ts': Error: Can't
 resolve '../JavaScript/JavaScriptSDK.Interfaces/Contracts/Generated/SeverityLevel.ts' in 'C:\xyz\myProject\node_modules\applicationinsights-js\bundle'
 @ ./index.tsx 7:31-64
 @ multi react-hot-loader/patch babel-polyfill ./index.tsx

WARNING in ../node_modules/applicationinsights-js/bundle/ai.module.js
(Emitted value instead of an instance of Error) Cannot find source file '../JavaScript/JavaScriptSDK.Interfaces/IAppInsights.ts': Error: Can't resolve '../JavaScri
pt/JavaScriptSDK.Interfaces/IAppInsights.ts' in 'C:\xyz\myProject\node_modules\applicationinsights-js\bundle'
 @ ./index.tsx 7:31-64
 @ multi react-hot-loader/patch babel-polyfill ./index.tsx

WARNING in ../node_modules/applicationinsights-js/bundle/ai.module.js
(Emitted value instead of an instance of Error) Cannot find source file '../JavaScript/JavaScriptSDK.Interfaces/IConfig.ts': Error: Can't resolve '../JavaScript/Ja
vaScriptSDK.Interfaces/IConfig.ts' in 'C:\xyz\myProject\node_modules\applicationinsights-js\bundle'
 @ ./index.tsx 7:31-64
 @ multi react-hot-loader/patch babel-polyfill ./index.tsx

WARNING in ../node_modules/applicationinsights-js/bundle/ai.module.js
(Emitted value instead of an instance of Error) Cannot find source file '../JavaScript/JavaScriptSDK.Interfaces/ITelemetryContext.ts': Error: Can't resolve '../Jav
aScript/JavaScriptSDK.Interfaces/ITelemetryContext.ts' in 'C:\xyz\myProject\node_modules\applicationinsights-js\bundle'
 @ ./index.tsx 7:31-64
 @ multi react-hot-loader/patch babel-polyfill ./index.tsx

WARNING in ../node_modules/applicationinsights-js/bundle/ai.module.js
(Emitted value instead of an instance of Error) Cannot find source file '../JavaScript/JavaScriptSDK.Interfaces/Telemetry/IEnvelope.ts': Error: Can't resolve '../J
avaScript/JavaScriptSDK.Interfaces/Telemetry/IEnvelope.ts' in 'C:\xyz\myProject\node_modules\applicationinsights-js\bundle'
 @ ./index.tsx 7:31-64
 @ multi react-hot-loader/patch babel-polyfill ./index.tsx

WARNING in ../node_modules/applicationinsights-js/bundle/ai.module.js
(Emitted value instead of an instance of Error) Cannot find source file '../JavaScript/JavaScriptSDK.Interfaces/Telemetry/ISerializable.ts': Error: Can't resolve '
../JavaScript/JavaScriptSDK.Interfaces/Telemetry/ISerializable.ts' in 'C:\xyz\myProject\node_modules\applicationinsights-js\bundle'
 @ ./index.tsx 7:31-64
 @ multi react-hot-loader/patch babel-polyfill ./index.tsx

WARNING in ../node_modules/applicationinsights-js/bundle/ai.module.js
(Emitted value instead of an instance of Error) Cannot find source file '../JavaScript/JavaScriptSDK.Module/AppInsightsModule.ts': Error: Can't resolve '../JavaScr
ipt/JavaScriptSDK.Module/AppInsightsModule.ts' in 'C:\xyz\myProject\node_modules\applicationinsights-js\bundle'
 @ ./index.tsx 7:31-64
 @ multi react-hot-loader/patch babel-polyfill ./index.tsx
KamilSzostak commented 6 years ago

Fixed in #511.

github-actions[bot] commented 3 years ago

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.