Answer the question
In order to leave comments, you need to log in
How to fix node js build error?
Hello!
There is a project with git on a node, if I first just install the dependencies via npm install to get the node_module folder, then when I start I get an error:
Package subpath './v4' is not defined by "exports"
After trial and error, I found out that the problem is fixed, if before npm install I delete and install slonik:
npm uninstall slonik
npm i slonik
npm install
Then everything starts, but slonik dependency somehow gets up incorrectly - the import link to some half-empty file and there is no interface I need. And the errors come out like: Property 'raw' does not exist on type. (although in the first case, if you do not update everything as it should, it is installed and the required interface is there).
what’s more, when updating slonik and after uninstalling (npm uninstall slonik), the npm slonik -v command always gives v.8.1.4 (the version after the update does not change and the delete field still shows that it is).
Q: What else can I try when starting a project?
Answer the question
In order to leave comments, you need to log in
try to see which version of slonik is installed during npm install, and which one is installed during pre-installation by hand, maybe the wrong version is specified in package.json
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question