Closed felixbillon closed 8 years ago
Need a simple runnable example to investigate this. Ideally it should not use Gulp or any other deps, just jQuery + SignalR.
My mistake :( I solve my problem thanks to process.env.BROWSERIFYSHIM_DIAGNOSTICS=1 !
I was using a local version of signalR, and then I switch to use a version on NPM... So I reference it twice on my vendor's bundle dependencies.
Hi everyone,
I'm using gulp + browserify to bundle my source but i got always the same error : jQuery was not found. Please ensure jQuery is referenced before the SignalR client JavaScript file. SignalR get $ = undefined...
I split my source into two bundle : vendor and app. Vendor bundle get lib's id from packages.json and the bundle require it. App bundle get main entry and i passe id's lib to this bundle with bundle.external.
Here my packages.json :
Here my gulp taks :
I already try to use browserify-shim transform with option global but this not work too.