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

Unable to build React UI #9922

@thirumurthy

Description

@thirumurthy

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions