Skip to content

Error when using Jsona on Nuxt server side #66

@StevenPewsey

Description

@StevenPewsey

When importing Jsona as suggested in the readme:

import Jsona from 'jsona'

It is resulting in a Jsona is not a constructor error when using by a Nuxt application on the server-side.

I have found that using the named import works

import { Jsona } from 'jsona'

Jsona version 1.12.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions