Hello, please just take a look here, seems to be npm issue, because it works fine with yarn: https://github.com/nuxt/typescript/issues/145#issuecomment-543009573
Wow Nuxt is cool! I see you’ve added steps to reproduce the issue in the linked GH issue but I don’t see the env details. Could you drop in your
npm --version && node --version into the issue. I’m wondering if it’s an issue with the Node LTS too. Many thanks!
Having same issue with kUbuntu 19.04:
$ node -v v12.11.1 $ npm -v 6.11.3
OS: Windows 10
The behaviour changing with install order sounds like a dependency problem where you get different versions of a package being used depending on whether a different but semver compatible version has already been installed. Comparing the
package-lock.json can be a big overwhelming, but another option is using the
npm ls command. This is also very convenient once you narrow down the package of interest for investigating what versions have been installed and how.
npm ls npm ls enhanced-resolve