I'm working on an existing project which uses Sitecore 10.1.3 PRE and built using SXA.
There is a themes folder in the Solution which has the custom theme.
When I browse the local site, it doesn't have the css.
I'm new to SXA and trying to upload this theme to the local website.
When I run sxa rebuild -d
from the themes
folder, in the terminal, it throws this error:
error: D:\Projects\Myproject\theme\-\media\Themes\Myproject\Shared\Shared
Theme\node_modules\@eslint\eslintrc\universal.js:1
Error [ERR_REQUIRE_ESM]: Must use import to load ES Module:
D:\Projects\Myproject\theme\-\media\Themes\Myproject\Shared\Shared
Theme\node_modules\@eslint\eslintrc\universal.js require() of ES
modules is not supported. require() of
D:\Projects\Myproject\theme\-\media\Themes\Myproject\Shared\Shared
Theme\node_modules\@eslint\eslintrc\universal.js from
D:\Projects\Myproject\theme\-\media\Themes\Myproject\Shared\Shared
Theme\node_modules\eslint\lib\linter\linter.js is an ES module file as
it is a .js file whose nearest parent package.json contains "type":
"module" which defines all .js files in that package scope as ES
modules. Instead rename universal.js to end in .cjs, change the
requiring code to use import(), or remove "type": "module" from
D:\Projects\Myproject\theme\-\media\Themes\Myproject\Shared\Shared
Theme\node_modules\@eslint\eslintrc\package.json.
I'm using sc10.1.3
PRE with Node 14.21.1