I've followed this documentation, but I get the following error when running npm run build:
ERROR in C:/websites/www8/admin-dev/themes/new-theme/js/components/modal/iframe-modal.ts
Module not found: Error: Can't resolve 'resize-observer-polyfill' in 'C:\websites\www8\admin-dev\themes\new-theme\js\components\modal'
ERROR in C:/websites/www8/admin-dev/themes/new-theme/js/components/grid/extension/position-extension.ts
Module not found: Error: Can't resolve 'tablednd/dist/jquery.tablednd.min' in 'C:\websites\www8\admin-dev\themes\new-theme\js\components\grid\extension'
ERROR in chunk grid [entry]
grid.bundle.js
C:\websites\www8\modules\lscartoffers\views\js\grid\index.js 17f5a5c3b8203601754cb0a169196040
Unexpected token (222:38)
| if (iframeContainer) {
| this.cleanResizeObserver();
| this.resizeObserver = new !(function webpackMissingModule() { var e = new Error("Cannot find module 'resize-observer-polyfill'"); e.code = 'MODULE_NOT_FOUND'; throw e; }())(function () {
| _this.autoResize();
| });
ERROR in C:\websites\www8\admin-dev\themes\new-theme\tsconfig.json
[tsl] ERROR
TS2688: Cannot find type definition file for 'vue'.
The file is in the program because:
Entry point for implicit type library 'vue'
ERROR in C:\websites\www8\admin-dev\themes\new-theme\js\components\auto-complete-search.ts
[tsl] ERROR in C:\websites\www8\admin-dev\themes\new-theme\js\components\auto-complete-search.ts(37,49)
TS2503: Cannot find namespace 'Twitter'.
as well as other similar errors. Quite stuck on this, seems like quit an uphill struggle to get a simple grid to display and work in a prestashop 8 module.