BrowserSync / browser-sync

Keep multiple browsers & devices in sync when building websites. https://browsersync.io
https://discord.gg/2d2xUThp
Apache License 2.0
12.19k stars 757 forks source link

Uncaught TypeError: D is not a function in browser-sync-client.js?v=2.27.11:11:100416 #2001

Open olyashok opened 1 year ago

olyashok commented 1 year ago

Issue details

Uncaught TypeError: D is not a function at new r (browser-sync-client.js?v=2.27.11:11:100416) at fs (browser-sync-client.js?v=2.27.11:11:102139) at browser-sync-client.js?v=2.27.11:11:124998 at browser-sync-client.js?v=2.27.11:11:125835

Steps to reproduce/test case

Using latest SystemJS

Please specify which version of Browsersync, node and npm you're running

Affected platforms

Browsersync use-case

for all other use-cases, (gulp, grunt etc), please show us exactly how you're using Browsersync

{Browsersync init code here} function startBrowserSync(cb) { browserSync.init({ proxy: "http://localhost:3000", files: ["public/*/."], port: 9000, ui: { port: 9001 }, middleware: function (req, res, next) { res.setHeader('Access-Control-Allow-Origin', ''); next(); } }, cb); }