Hi all, 

Ok. We were able to figure it out.

Firstly, we did "yarn clean". Then "yarn install".

yarn start:dev started to work.

Thanks and Regards,
Akshay Karthik Thana Sekar

On Monday, March 17, 2025 at 5:15:20 PM UTC+11 akshay ts wrote:

> Hi everyone,
>
> I am trying to compile the front end angular code of dspace 7.6.3 using 
> yarn start:dev.
> It throws the following error and continue to be in the setup phase rather 
> than moving to the next phases.
>
> ⠋ Generating browser application bundles (phase: setup)...An unhandled 
> exception occurred: Invalid options object. Copy Plugin has been 
> initialized using an options object that does not match the API schema.
>  - options.patterns[0] has an unknown property 'priority'. These 
> properties are valid:
>    object { from, to?, context?, globOptions?, filter?, toType?, force?, 
> info?, flatten?, transform?, cacheTransform?, transformPath?, 
> noErrorOnMissing? }
>  - options.patterns[1] has an unknown property 'priority'. These 
> properties are valid:
>    object { from, to?, context?, globOptions?, filter?, toType?, force?, 
> info?, flatten?, transform?, cacheTransform?, transformPath?, 
> noErrorOnMissing? }
> See "[Path to AppData]\Local\Temp\ng-cyDrQ7\angular-errors.log" for 
> further details.
> ⠙ Generating browser application bundles (phase: setup)...
>
> The* angular-errors.log* file has the following:
>
> [error] ValidationError: Invalid options object. Copy Plugin has been 
> initialized using an options object that does not match the API schema.
>  - options.patterns[0] has an unknown property 'priority'. These 
> properties are valid:
>    object { from, to?, context?, globOptions?, filter?, toType?, force?, 
> info?, flatten?, transform?, cacheTransform?, transformPath?, 
> noErrorOnMissing? }
>  - options.patterns[1] has an unknown property 'priority'. These 
> properties are valid:
>    object { from, to?, context?, globOptions?, filter?, toType?, force?, 
> info?, flatten?, transform?, cacheTransform?, transformPath?, 
> noErrorOnMissing? }
>     at validate 
> ([dspace-angular]\node_modules\copy-webpack-plugin\node_modules\schema-utils\dist\validate.js:105:11)
>     at new CopyPlugin 
> ([dspace-angular]\node_modules\copy-webpack-plugin\dist\index.js:54:31)
>     at getCommonConfig 
> ([dspace-angular]\node_modules\@angular-builders\custom-webpack\node_modules\@angular-devkit\build-angular\src\webpack\configs\common.js:146:27)
>     at async Promise.all (index 1)
>     at async generateWebpackConfig 
> ([dspace-angular]\node_modules\@angular-builders\custom-webpack\node_modules\@angular-devkit\build-angular\src\utils\webpack-browser-config.js:60:22)
>     at async generateBrowserWebpackConfigFromContext 
> ([dspace-angular]\node_modules\@angular-builders\custom-webpack\node_modules\@angular-devkit\build-angular\src\utils\webpack-browser-config.js:119:20)
>     at async generateI18nBrowserWebpackConfigFromContext 
> ([dspace-angular]\node_modules\@angular-builders\custom-webpack\node_modules\@angular-devkit\build-angular\src\utils\webpack-browser-config.js:68:20)
>     at async setup 
> ([dspace-angular]\node_modules\@angular-builders\custom-webpack\node_modules\@angular-devkit\build-angular\src\builders\dev-server\index.js:141:47)
>
> Does anyone have faced this issue and solved it?
> We would be glad if someone could help us with this.
>
> *Note*: The code compiles with yarn build:prod without any issues.
>
> Thanks and Regards,
> Akshay Karthik Than Sekar
>

-- 
All messages to this mailing list should adhere to the Code of Conduct: 
https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx
--- 
You received this message because you are subscribed to the Google Groups 
"DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/dspace-tech/b76c89dc-2274-4a83-8708-625d86edb53bn%40googlegroups.com.

Reply via email to