Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

@nuxtjs/partytown is not working with nuxt 3 #58

Closed
anish2690 opened this issue Apr 13, 2022 · 3 comments
Closed

@nuxtjs/partytown is not working with nuxt 3 #58

anish2690 opened this issue Apr 13, 2022 · 3 comments

Comments

@anish2690
Copy link

anish2690 commented Apr 13, 2022

import { defineNuxtConfig } from 'nuxt3'

export default defineNuxtConfig({
  modules: ['@nuxtjs/partytown'],
  partytown: {
    forward: ['$crisp', '$crisp.push'],
    debug: true
  },
  meta: {
    script: [
      // Insert your CRISP Script here e.g.:
      { children: 'window.$crisp = []; window.CRISP_WEBSITE_ID = "0000"' },
      { src: 'https://client.crisp.chat/l.js', async: true, type: 'text/partytown' } 
    ]
  }
})

Worker not getting initialised

image

@danielroe
Copy link
Contributor

This is the issue: nuxt/framework#4304 - the nitro:generate hook was removed.

@TrungRueta
Copy link

maybe use nitro:start will be solution ?

@danielroe
Copy link
Contributor

Thanks for the issue - we're now using new nitro publicAssets to directly add + serve partytown directory: bf4cfca.

Issue should be resolved in 0.1.1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants