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.

TypeError for bridge:{autoImports} in nuxt.config.ts

See original GitHub issue

Environment


  • Operating System: Darwin
  • Node Version: v16.15.0
  • Nuxt Version: 2.16.0-27616340.013f051b
  • Package Manager: yarn@3.2.1
  • Builder: webpack
  • User Config: srcDir, bridge, ssr, dev, webpackOptimisations, alias, image, generate, head, typescript, publicRuntimeConfig, privateRuntimeConfig, css, loading, loadingIndicator, plugins, components, buildModules, modules, proxy, axios, vuetify, build, serverHandlers, devServerHandlers
  • Runtime Modules: @nuxtjs/vuetify@1.12.3, @nuxt/image@0.6.2, @nuxtjs/axios@5.13.6, @nuxtjs/proxy@2.1.0, nuxt-social-meta@1.0.0
  • Build Modules: (), nuxt-storm@1.1.3, nuxt-compress@5.0.0, nuxt-webpack-optimisations@2.2.4, @pinia/nuxt@0.3.1, @nuxt/bridge@3.0.0-27636329.42ea75b

Reproduction

Add this to nuxt.config.ts

    bridge: {
        autoImports: {
            dirs: [
                // Scan composables from nested directories
                'composables/**',
            ],
        },
    },

Describe the bug

image

Additional context

No response

Logs

No response

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:10 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
danielroecommented, Jul 28, 2022

Ah, yes. This was an upstream change in unimport. Please see this migration guide. It is for Nuxt 3 but applies in this case.

1reaction
danielroecommented, Sep 15, 2022

To be clear, bridge.imports (we’ve recently renamed it) should be set to true/false. Configuration is provided in a top-level imports key.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Customer Provider in nuxt.config.ts leads to: TypeError ...
Hello, so im trying to add a custom provider in my nuxt.config.ts image: { providers: { customProvider: { name: 'customProvider', ...
Read more >
Configuration - Nuxt
This default configuration can be overwritten with the nuxt.config.js file. The css Property. Nuxt lets you define the CSS files/modules/libraries you want to ......
Read more >
Nuxt Typescript with Custom Server Framework: TypeError
The error when building with node --require ts-node/register ... Here are related settings in nuxt.config.js and tsconfig.nuxt.jso .
Read more >
Install Tailwind CSS with Nuxt.js
Using npm, install tailwindcss and its peer dependencies, as well as @nuxt/postcss8 , and then run the init command to generate the tailwind.config.js...
Read more >
Migrate to Nuxt 3: Configuration
Build your next Vue.js application with confidence using Nuxt. An open source framework under MIT license that makes web development simple and powerful....
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