Skip to content
This repository has been archived by the owner on Jan 27, 2023. It is now read-only.

In debug mode, vss-web-extension-sdk request my localhost #147

Open
VAllens opened this issue Nov 4, 2019 · 1 comment
Open

In debug mode, vss-web-extension-sdk request my localhost #147

VAllens opened this issue Nov 4, 2019 · 1 comment

Comments

@VAllens
Copy link

VAllens commented Nov 4, 2019

vss-extension.dev.json:

{
    "id": "widgets-demo",
    "public": false,
    "baseUri": "http://localhost:3000"
}

package.json

{
  "name": "widgets-demo",
  "version": "1.0.0",
  "dependencies": {
    "bootstrap": "^3.4.1",
    "font-awesome": "^4.7.0",
    "jquery": "^3.4.1",
    "jquery-ui-dist": "^1.12.1",
    "moment": "^2.24.0",
    "vss-web-extension-sdk": "^5.141.0"
  }
}

javascript code:

VSS.init({
	explicitNotifyLoaded: true,
	usePlatformScripts: true
});
VSS.require([
	"VSS/Controls",
	"VSS/Controls/Combos",
	"TFS/WorkItemTracking/Contracts",
	"TFS/WorkItemTracking/RestClient",
	"TFS/WorkItemTracking/Services"
], function (wControls, wCombos, wItemContracts, wItemRestClient, wItemServices) {
	//TODO: do something...
	VSS.notifyLoadSucceeded();
});

google chrome browser console log:

GET http://localhost:3000/_public/_Bundling/DynamicBundles?scripts=TFS%2FWorkItemTracking%2FContracts%3B*RestClient%3B*Services%3BVSS%2FControls%3B*Controls%2FCombos&v=Dev17.M153.3&theme=Default&loc=zh-CN&json 404 (Not Found)

The TFS/WorkItemTracking/RestClient script is part of vss-web-extension-sdk, so it should not request my localhost.

I think it is a bug.

@VAllens
Copy link
Author

VAllens commented Nov 4, 2019

image

I solved the problem temporarily by using Fiddler 4 redirect.

I hope the official team can fix it as soon as possible, which affects our development efficiency.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant