Vue-good-table: vue-runtime-helpers/dist/normalize-component.js not found - 2.17.0

Created on 6 Jul 2019  路  29Comments  路  Source: xaksis/vue-good-table

Issue Type

  • [x] Bug

Specs

What version are you using?
2.17.0

Technically 2.17.0 doesn't seem to be released yet, but dependabot flagged the updated dependency for me, so it might've for others as well - so I'll just let you know anyways.

After updating, build/dev server fails on 2.17.0

This dependency was not found:

* vue-runtime-helpers/dist/normalize-component.js in ./node_modules/vue-good-table/dist/vue-good-table.esm.js

To install it, you can run: npm install --save vue-runtime-helpers/dist/normalize-component.js

I couldn't manually install vue-runtime-helpers/dist/normalize-component.js either - returned 405 error...

Downgrading to 2.16.5 fixes for now!

Most helpful comment

still having the same issue for version 2.17.2 when using npm

All 29 comments

looks like an error in rollup plugin
https://github.com/vuejs/rollup-plugin-vue/issues/257
I updated the dependency. Thank you for bringing this up.

@xaksis I had the same problem, after upgrade to 2.7.1 I get the same error as before "fix".

@chasegiunta can you confirm that it is fixed for you ih 2.7.1 ? (as for me it is not)

I got the same problem with 2.7.1 running npm run dev (Laravel + Vue installation):
Module not found: Error: Can't resolve 'vue-runtime-helpers/dist/normalize-component.js' in '/Users/myuser/Code/hvaskjer/node_modules/vue-good-table/dist'

Going to reopen this to investigate

still having the same issue for version 2.17.2 when using npm

One of workaround is add devDependencies into package.json
like:

"devDependencies": {
    ...
    "rollup-plugin-commonjs": "^10.0.1",
    "rollup-plugin-vue": "^5.0.1",
    ...
}

One of workaround is add devDependencies into package.json
like:

"devDependencies": {
    ...
    "rollup-plugin-commonjs": "^10.0.1",
    "rollup-plugin-vue": "^5.0.1",
    ...
}

Still it's not working !!

One of workaround is add devDependencies into package.json
like:

"devDependencies": {
    ...
    "rollup-plugin-commonjs": "^10.0.1",
    "rollup-plugin-vue": "^5.0.1",
    ...
}

Still it's not working !!

It works for my project and I am not sure if need to install additional dependencies.

darn! these dependency issues will be the end of me... specially because i'm having trouble reproducing this on my end. re-opening.

same as #571

Let's see what egoist suggests: https://github.com/egoist/bili/issues/221

One of workaround is add devDependencies into package.json
like:

"devDependencies": {
    ...
    "rollup-plugin-commonjs": "^10.0.1",
    "rollup-plugin-vue": "^5.0.1",
    ...
}

Same problem, but this works for me
Thanks

"rollup-plugin-commonjs": "^10.0.1",
"rollup-plugin-vue": "^5.0.1",

Can confirm this fixed my problem too.

yarn user here
following @ccclin's solution, deleting node_modules and operating a fresh yarn install solved the problem.
thanks

Same issue here:

This dependency was not found:

* vue-runtime-helpers/dist/normalize-component.js in ./node_modules/vue-good-table/dist/vue-good-table.esm.js

To install it, you can run: npm install --save vue-runtime-helpers/dist/normalize-component.js
````  
This just happen after run:
`npm update`

I checked my `package-lock.json`
`"vue-good-table": "2.17.2"`

I just rollback to:

...
"dependencies": {
"vue-good-table": "2.16.5",
}
...
`` Run: npm install`

And everthing works again ^^

Same problem here.
Not using Rollup, only webpack.

It works if I hard-code the version via:

npm i [email protected]

Yes, please continue to use 2.16.5 for now. I'll update once I have a good solution for the rollup changes.

Solved with,

paste two lines,

"rollup-plugin-commonjs": "^ 10.0.1",
"rollup-plugin-vue": "^ 5.0.1",

and npm install.

tank's

I had this exact problem in in an Installation of Laravel 5.8.28/Vue 2.6.10
I did not have rollup installed so I'm not sure of what the cause is but I just ended up changing the import to this
import VueGoodTable from 'vue-good-table/dist/vue-good-table.js';
Which ended up working.
Not sure if this is a proper fix though.

@comhernandez28 yeah, the issue is only with the esm file that is created. umd and cjs versions should work fine.

inlining the missing dependency in 2.17.3. This should fix the not found issue.

@xaksis working on my end 馃憤- but I'll leave to you to close if you want to hear from others. Appreciate your hard work!

Does "inlining" mean the library grew in size?

@xaksis Hi, I have the same issue on my component for Plyr (https://github.com/zcuric/plyrue/issues/5).

Your solution to bundle node modules with bili ended up increasing the size of bundle for vue-good-table. Comparison can be made here on unpkg or on bundlephobia.

I suggest doing what I did, until proper solution has been found, lock rollup-plugin-vue to 4.3.2. You'll keep your build smaller.

I'll try to fix this in a better way and inform you if I found anything. Cheers.

@zcuric did you find a better way than downgrading to 4.3.2?

@LeCoupa To be honest, I didn't look for it, didn't have time. I'll will take a look in the nearby future.

@zcuric I ended up using vue-sfc-rollup. It made the process of bundling components way simpler.

https://github.com/team-innovation/vue-sfc-rollup

Was this page helpful?
0 / 5 - 0 ratings

Related issues

dylanvanes picture dylanvanes  路  3Comments

oflittlemother picture oflittlemother  路  6Comments

LiamMcArthur picture LiamMcArthur  路  3Comments

enghelewa picture enghelewa  路  3Comments

mustfullDev picture mustfullDev  路  3Comments