Invalid documentation/types regarding Nuxt module options
See original GitHub issueVersions
- 1.4.0
Describe the bug
As far as the documentation and TS types go, both cssFile and plugin options have to be specified in the same, flat object like so:
['vue-toastification/nuxt', {
cssFile: 'ssss.css',
containerClassName: 'my-container-class',
position: 'top-left',
})],
But as far as the actual code goes, the user has to pass the plugin options through pluginOptions like so:
['vue-toastification/nuxt', {
cssFile: 'ssss.css',
pluginOptions: {
containerClassName: 'my-container-class',
position: 'top-left',
},
})],
Expected behavior
Code, documentation and types should match.
Steps to reproduce
- Register Nuxt module, per documentation, with:
['vue-toastification/nuxt', {
position: 'top-left',
})],
- Notice that setting doesn’t apply (notification uses default top-right placement).
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (4 by maintainers)
Top Results From Across the Web
Modules support status · Discussion #751 · nuxt/framework
Currently, we are trying hard to make the bridge module more stable and provide tooling and documentation for module authors in order to...
Read more >Modules directory - Nuxt
This is the content of the user's nuxt.config.js with all default options assigned to it. It can be used for shared options between...
Read more >Configuration - Nuxt
Nuxt lets you define the CSS files/modules/libraries you want to set globally ... Thanks to Vue Loader , you can use any kind...
Read more >The modules Property - Nuxt
nuxt.options.plugins.push(... ) Reverse the order of the modules if it depends on another. Modules should export a function ...
Read more >Options - nuxtjs/sentry
environment variables; sentry object in nuxt.config.js; when registering the module: modules: [['@nuxtjs/sentry', {/*options*/}]].
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

I agree, the code and documentation quality is excellent and the level of customization that is allowed is almost infinite 😃 Thank you.
@Maronato thanks for this fix with nuxt, love your repo and how well-maintained it is!