question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Vue Plugin: Cannot read property 'config' of null

See original GitHub issue

We have an app that uses components from a plugin we wrote.

When one of the components (that contains vuelidate) is used we receiving the following error:

vue.runtime.esm.js?2b0e:1888 TypeError: Cannot read property 'config' of null

This occurs at: const v$ = useVuelidate(rules, buffer);

export default defineComponent<Props, Setup>({
  ...
  setup(props: Props, context): Setup {
    ...
    const v$ = useVuelidate(rules, buffer);

We had issues before with vuelidate in our plugin but thought they were resolved. In fact I thought a fix/update was put in place when we brought our plugin use-case issue up.

Setup: Vuelidate 2 Composition API Plugin Vue 2

I have seen other issues that seem related: https://github.com/vuelidate/vuelidate/issues/815 https://github.com/vuelidate/vuelidate/issues/922

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
dobromir-hristovcommented, Sep 7, 2021

I have not yet had time to see it. Will do in an hour.

0reactions
rcovellcommented, Sep 9, 2021

Will put something together.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cannot read property 'config' of null TypeError - Stack Overflow
This error occurs when angular cannot find .angular-cli.json file (Do note there is a dot in the file name). Usually it is a...
Read more >
How to fix the Error in data(): "TypeError: Cannot read ...
How to fix the Error in data(): "TypeError: Cannot read properties of null (reading 'config')", Vue2 composition API warning. #vue ...
Read more >
Angular – Cannot read property 'config' of null - iTecNote
If you are using a Mac, use the command ls -a to list hidden files. You will notice that .angular-cli.json will be there....
Read more >
ERROR in Cannot read property &#38;#039;length&#38
Hi,. i just tried to migrate to Angular 9 and followed the Instruction. But getting this mistake: ERROR in Cannot read property 'length'...
Read more >
uncaught typeerror: cannot read properties of undefined ...
启动项目时出现Uncaught TypeError: Cannot read properties of undefined (reading 'install')这个错误,检查了下是自己的vue-router安装的版本错误,我写的项目是vue2, ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found