Skip to content
This repository has been archived by the owner on Jul 24, 2024. It is now read-only.

Unable to build React UI #9922

Open
thirumurthy opened this issue Mar 15, 2022 · 0 comments
Open

Unable to build React UI #9922

thirumurthy opened this issue Mar 15, 2022 · 0 comments

Comments

@thirumurthy
Copy link

thirumurthy commented Mar 15, 2022

I am getting the following error while trying to build the history module.


./modules/index.js → cjs/history.js...
created cjs/history.js in 949ms

./modules/index.js → cjs/history.min.js...
created cjs/history.min.js in 324ms

./modules/index.js → esm/history.js...
[!] (size-snapshot plugin) Error: ModuleNotFoundError: Module not found: Error: Can't resolve './LocationUtils.js' in '/'
ModuleNotFoundError: Module not found: Error: Can't resolve './PathUtils.js' in '/'
ModuleNotFoundError: Module not found: Error: Can't resolve './createBrowserHistory.js' in '/'
ModuleNotFoundError: Module not found: Error: Can't resolve './createHashHistory.js' in '/'
ModuleNotFoundError: Module not found: Error: Can't resolve './createMemoryHistory.js' in '/'
Error: ModuleNotFoundError: Module not found: Error: Can't resolve './LocationUtils.js' in '/'
ModuleNotFoundError: Module not found: Error: Can't resolve './PathUtils.js' in '/'
ModuleNotFoundError: Module not found: Error: Can't resolve './createBrowserHistory.js' in '/'
ModuleNotFoundError: Module not found: Error: Can't resolve './createHashHistory.js' in '/'
ModuleNotFoundError: Module not found: Error: Can't resolve './createMemoryHistory.js' in '/'
    at C:\syndesisio\syndesis\app\ui-react\packages\history\node_modules\rollup-plugin-size-snapshot\dist\treeshakeWithWebpack.js:58:16
    at finalCallback (C:\syndesisio\syndesis\app\ui-react\packages\history\node_modules\rollup-plugin-size-snapshot\node_modules\webpack\lib\Compiler.js:257:39)
    at C:\syndesisio\syndesis\app\ui-react\packages\history\node_modules\rollup-plugin-size-snapshot\node_modules\webpack\lib\Compiler.js:273:13    at AsyncSeriesHook.eval [as callAsync] (eval at create (C:\syndesisio\syndesis\app\ui-react\packages\history\node_modules\rollup-plugin-size-snapshot\node_modules\tapable\lib\HookCodeFactory.js:33:10), :4:1)

Description

I don't know how to fix this problem.
My development environment is

Nodejs : v12.19.0
Npm: 6.14.8
and Windows 11. 64 bit

Please help me on this issue.

I tried the following ways:

yarn workspace @syndesis/history run build

So i go into history folder and tried

yarn build

it is also not working so i tried to install rollup globally and tried

npm install --global rollup@0.66.6
rollup -c

It is also not working so i tried to go into tools/bin folder and open git bash here. and tried.

./syndesis ui --install --build

All the time, i am getting only same above error.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant