I suddently (?) get this error message: Module not...
# kvision
j
I suddently (?) get this error message: Module not found: Error: Can't resolve './locale' in 'MY_PROJECT_ROOT/build/js/node_modules/moment/min' in browserDevelopmentRun Any ideas how I could find the reason for?
r
there was an issue with moment.js last year
please check what version of moment.js is used by your dependencies
in
build/js/node_modules/moment/package.json
j
I am not so sure, but at least "2.29.1" is installed in the root folder
--> yes. That is the version
r
do you have any npm dependencies or just kvision modules?
j
Just kvision modules
r
do you use kvision-chart ?
or kvision-bootstrap-datetime?
j
yes. I have all the modules there
both
r
is this error still there after clean build?
j
Yes. I cleared everything and tried several times now
r
have you added
DateTimeInput
or
Chart
to your code recently?
j
No. I do not use these. I am currently trying to remove all unnecessary dependencies
r
those two modules depend on momentjs
if you remove them the issuse should be gone
but can you send me your full build log with this error first?
and the
yarn.lock
file from
build/js
j
I will
r
btw. do you use IR compiler backend?
j
Yes. IR-Backend
And it stops working as soon as I add "pl.treksoft:kvision-moment"
r
With KVision 3.19.1 and Kotlin 1.4.21?
j
1.4.30
I think 😉
r
You are using unsupported configuration 😜
j
Yes. Of course!
what is supported?
1.4.21?
r
1.4.21 and legacy backend
j
Uuh. Ok.
r
I'm finishing work on KVision 4
👍 1
j
Then I am a beta tester for the lastest version 😉
r
With Kotlin 1.4.30 IR will be the default.
👍 1