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
jeremymeng opened this issue
May 10, 2024
· 0 comments
Labels
ClientThis issue points to a problem in the data-plane of the library.dev-toolIssues related to the Azure SDK for JS dev-toolEngSysThis issue is impacting the engineering system.
[run-samples] Running D:\a_work\1\s\sdk\template\template\samples-dev\getConfigurationSetting.ts
[run-samples] Error in D:\a_work\1\s\sdk\template\template\samples-dev\getConfigurationSetting.ts:
[run-samples] Error: Must use import to load ES Module: D:\a_work\1\s\sdk\template\template\samples-dev\getConfigurationSetting.ts
require() of ES modules is not supported.
require() of D:\a_work\1\s\sdk\template\template\samples-dev\getConfigurationSetting.ts from D:\a_work\1\s\common\tools\dev-tool\src\commands\samples\run.ts is an ES module file as it is a .ts file whose nearest parent package.json contains "type": "module" which defines all .ts files in that package scope as ES modules.
Instead change the requiring code to use import(), or remove "type": "module" from D:\a_work\1\s\sdk\template\template\package.json.
[run-samples] Errors occurred in the following files:
[run-samples] - getConfigurationSetting.ts ( Error: Must use import to load ES Module: D:\a_work\1\s\sdk\template\template\samples-dev\getConfig )
[dev-tool] Errors occured. See the output above.
Error: Failed calling dev-tool samples run samples-dev. Exit code: 1
##[error]Cmd.exe exited with code '1'.
Finishing: Execute Samples
The text was updated successfully, but these errors were encountered:
xirzec
added
EngSys
This issue is impacting the engineering system.
and removed
needs-triage
This is a new issue that needs to be triaged to the appropriate team.
labels
Jun 3, 2024
ClientThis issue points to a problem in the data-plane of the library.dev-toolIssues related to the Azure SDK for JS dev-toolEngSysThis issue is impacting the engineering system.
https://dev.azure.com/azure-sdk/internal/_build/results?buildId=3778146&view=logs&j=4eaf6b84-07d0-5e66-f484-4e9defa3fc2f&t=c0bbcefe-75de-57d8-29b4-466c419539c4 (MS INTERNAL)
The text was updated successfully, but these errors were encountered: