1

I am currently keen to updating my existing Nuxt 2 project to Nuxt Bridge as documented here:

https://v3.nuxtjs.org/getting-started/bridge

As for my nuxt.config file I used module.exports = { //config }

Exchanging it with the:

import { defineNuxtConfig } from '@nuxt/bridge'

export default defineNuxtConfig({
  // Your existing configuration
})

leads to a webpack error for me because of the "@nuxtjs/firebase" module:

enter image description here

How can I fix this?

kissu
  • 40,416
  • 14
  • 65
  • 133
lucamario
  • 220
  • 1
  • 3
  • 12
  • Have you do this config https://v3.nuxtjs.org/docs/deployment/firebase/ for firebase deployment ? – Salma EL HAJRAOUI Oct 13 '21 at 07:57
  • Not yet, anyway, Nuxt somehow needs to know the firebare project credentials like apiKey, authDomain, etc., I don't think this will help, since I need the module in my nuxt.config – lucamario Oct 13 '21 at 08:58

1 Answers1

0

You must specify an alias for tslib:

import { defineNuxtConfig } from '@nuxt/bridge'

export default defineNuxtConfig({
  alias: {
    tslib: 'tslib/tslib.es6.js'
  }
})

Follow this issue: https://github.com/nuxt/bridge/issues/25

kissu
  • 40,416
  • 14
  • 65
  • 133
Mazel
  • 1
  • 1