# "Property ngswConfigPath is not allowed" after updating from angular 16 to 17

**URL:** <https://forum.ionicframework.com/t/property-ngswconfigpath-is-not-allowed-after-updating-from-angular-16-to-17/238280>\
**Category:** Ionic Framework\
**Created:** [December 8, 2023, 4:13pm UTC](https://forum.ionicframework.com/t/property-ngswconfigpath-is-not-allowed-after-updating-from-angular-16-to-17/238280 "2023-12-08T16:13:48Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Th-Barth](https://avatars.discourse-cdn.com/v4/letter/t/8c91f0/32.png) [@Th-Barth](https://forum.ionicframework.com/u/Th-Barth)\
**Post date:** [December 10, 2023, 12:28pm UTC](https://forum.ionicframework.com/t/property-ngswconfigpath-is-not-allowed-after-updating-from-angular-16-to-17/238280/2 "2023-12-10T12:28:22Z")

</div>

Warning" Switching to esbuild ruins your project!

It happens when you press the button “Switch to esbuild” under Recommendations.

The following table lists all the `browser` builder options that will need to be adjusted or removed.  
[Angular esbuild](https://angular.io/guide/esbuild)

When I changed

```auto
    "serviceWorker": true,
    "ngswConfigPath": "ngsw-config.json",

```

to

```auto
    "serviceWorker": "ngsw-config.json",

```

Ionic build could run again. But when you want to start the project again by “ionic serve” you get to see

```auto
[ng] 13:08:51 [vite] warning: 
[ng] E:/ionic-workspace/op24/.angular/cache/17.0.6/vite/deps/chunk-MWVXNVJO.js
[ng] 2585| return i[n];
[ng] 2586| }
[ng] 2587| return import("./".concat(a, ".entry.js").concat("")).then(function(e2) {
[ng] | ^
[ng] 2588| {
[ng] 2589| cmpModules.set(a, e2);
[ng] The above dynamic import cannot be analyzed by Vite.
[ng] See https://github.com/rollup/plugins/tree/master/packages/dynamic-import-vars#limitations for supported dynamic import formats. If this is intended to be left as-is, you can use the /* @vite-ignore */ comment inside the import() call to suppress this warning.
[ng]
[ng] Plugin: vite:import-analysis

```

and in the browser you see:

 ![errors_ionic_serve_after_esbuild](https://global.discourse-cdn.com/ionicframework/original/3X/c/3/c32cb4d78fa924ed9f042bf3d0388439c328d06d.png)

How can I undo everything? Can I switch to the old build system?

---

_[View the full topic](https://forum.ionicframework.com/t/property-ngswconfigpath-is-not-allowed-after-updating-from-angular-16-to-17/238280)._
