https://github.com/antoinerey/vue-component
cd vue-component && npm link
cd vue-component-app && npm link vue-component
npm run dev
The build should pass without any warning and the app should run.
The build emits some warning about the default export
not being found. And the application crashes.
I'm trying to develop and publish a component to NPM. While testing it, I wanted to ensure it was working into a Nuxt application.
Note that if I install the exact same package from NPM, it works as expected. So I'm thinking this issue is related to symlinks and how Babel transformations are applied.
I've had the same issue, solved it by setting config.resolve.symlinks = false
in the nuxt.config.js
// extend webpack config
extend(config, { isDev, isClient }) {
// do not resolve symlinks
if (isDev) config.resolve.symlinks = false
})
Thanks! Spent a lot of time for debug this.
I had try just import module in nuxt page in es6-style from a local module in node_modules dir:
import { wordToNum, numToWord } from 'webpack-numbers'
and got errors that export is not defined
This bug-report has been cancelled by @manniL.
Solution as explained by @sh
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Most helpful comment
I've had the same issue, solved it by setting
config.resolve.symlinks = false
in thenuxt.config.js