Defect testing JMIX 2.3.1 - found a solution

Testing JMix 2.3.1 I get this error

"Invalid import ‘@vaadin/field-base/src/input-field-mixin.js’"

any suggestion ?
thanks
:slight_smile:

2024-07-19T11:26:10.038+02:00 INFO 21156 — [onPool-worker-1] c.v.f.s.frontend.TaskUpdatePackages : using ‘C:\Program Files\nodejs\npx.cmd --yes --quiet pnpm --shamefully-hoist=true --ignore-scripts install’ for frontend package installatio
2024-07-19T11:28:41.235+02:00 INFO 21156 — [onPool-worker-1] c.v.f.s.frontend.TaskUpdatePackages : Frontend dependencies resolved successfully.
2024-07-19T11:28:45.896+02:00 INFO 21156 — [onPool-worker-1] c.v.f.s.frontend.TaskCopyFrontendFiles : Copying frontend resources from jar files …
2024-07-19T11:28:45.985+02:00 INFO 21156 — [onPool-worker-1] c.v.f.s.frontend.TaskCopyFrontendFiles : Visited 22 resources. Took 88 ms.
> 2024-07-19T11:28:46.260+02:00 ERROR 21156 — [onPool-worker-1] c.v.f.server.frontend.TaskUpdateImports : Invalid import '@vaadin/field-base/src/input-field-mixin.js’’’’

I deleted node_modules
I try vaadinBuildFrontend

Task :vaadinPrepareFrontend
Task :processResources
Task :classes
Task :vaadinBuildFrontend
Invalid import ‘@vaadin/field-base/src/input-field-mixin.js’
import { css, registerStyles, ThemableMixin } from ‘@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js’ in file ‘D:\JMIX\DataWare\Test_JMix2.3.0\frontend.\generated\jar-resources\src\twin-column\jmix-twin-column.js’

Hi,

Unfortunately, I cannot reproduce the issue. Both a new project and migrated from previous version work as expected. If possible, please provide a demo project that reproduces the problem.

Regards,
Gleb

1 Like

Read article from StackOverflow about “npm” update.

#What does 'x packages are looking for funding' mean when running `npm install`? - Stack Overflow

From Windows Power Shell having Admin permission

I executed :

‘’’ PS C:\Windows\System32> npm install --force
Recommended protections disabled.
up to date, audited 20 packages in 827ms
PS C:\Windows\System32>npm i reactstrap --legacy-peer-deps ‘’’

Now works.

1 Like