It seems you are experiencing issues with the RequireJS module loading for your custom work item control based on the DevLabs Multi-Value Control in Azure DevOps. Here are some steps and considerations that might help you resolve the module-loading issue:
- Check RequireJS Configuration: Ensure that your RequireJS configuration is correctly set up in your JavaScript files. You may need to specify the
baseUrlin your RequireJS configuration to point to the correct directory where your JavaScript bundles are located (e.g.,dist/src). - Verify Paths: Make sure that the paths defined in your RequireJS configuration match the actual paths of your JavaScript bundles. If you are getting 404 errors, it indicates that RequireJS cannot find the specified modules.
- Inspect Network Requests: Use the browser's developer tools to inspect the network requests being made for your JavaScript bundles. Look for any 404 errors or unexpected responses (like JSON instead of JS) that might indicate misconfigured paths or issues with the server serving the files.
- Manifest File: Double-check your extension's manifest file to ensure that it correctly defines the contributions and that the paths to your JavaScript files are accurate.
- Webpack Output: Since you are using Webpack, verify that the output configuration in your Webpack setup is correct. Ensure that the output path matches what you expect and that the files are being generated as intended.
- Debugging Initialization: Since
SDK.init()andSDK.register()are not executing, you may want to add console logs or breakpoints in your initialization code to see if it is being reached. This might help you identify where the execution is failing. - Testing in Isolation: If possible, create a minimal version of your control to isolate the problem. This can help determine if the issue is with the control itself or with the environment/setup.
- Consult Documentation: Review the Azure DevOps extension development documentation for any specific guidelines regarding DevLabs extensions and RequireJS configurations.
If you continue to experience issues, consider reaching out to the Azure DevOps community or support for more tailored assistance regarding your specific setup and configuration.
References: