Hi All, I am trying to setup my development enviro...
# suitecommerce
g
Hi All, I am trying to setup my development environment up to allow me to upgrade our SCA webstore to 2022.1.1. I am experiencing the following error when trying to run gulp after npm install (I am using node version 12.21.0):
Backend\Common\PageType\PageTypeSettings.ServiceController.ts(14,34): error TS2792: Cannot find module '../../../ServiceContract/Common/PageType/PageType'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?
TypeScript: 1 semantic error
TypeScript: emit succeeded (with errors)
[10:04:38] 'suitescript' errored after 2.41 s
[10:04:38] Error: TypeScript: Compilation failed
at Output.mightFinish (C:\Users\GavinWilliams\Desktop\SCA DEV\SCA_22-1-1\SC_22.1_Live\node_modules\gulp-typescript\release\output.js:130:43)
at C:\Users\GavinWilliams\Desktop\SCA DEV\SCA_22-1-1\SC_22.1_Live\node_modules\gulp-typescript\release\output.js:43:22
at runMicrotasks (<anonymous>)
at processTicksAndRejections (internal/process/task_queues.js:97:5)
[10:04:38] 'backend_ss2-no-dep' errored after 2.41 s
[10:04:38] 'default' errored after 11 s
The module seems to be missing from the source files for this version. Does anyone now how I could resolve this error? Is there something I am missing when setting up my environment?
s
This is a known issue and will be fixed in the next minor release, which should hopefully be next week.
In the meantime, you can create Common\PageType\PageType.ts in the root of the ServiceContract directory and in it put:
Copy code
export interface PageTypeSettings {
    [keys: string]: string;
}
That should work around the problem. If you still experience difficulty, you can raise a case and reference issue 671650
g
Ok thanks Steve, will give it a try
s
I just doublechecked, and it's meant to be in the ServiceContract directory
g
I have created it in the following path - SC_22.1_Live\ServiceContract\Common\PageType\PageType.ts
just ran gulp and it seemed to work as intended
👍
s
Great