Skip to content

Fail on compilation in Nuxt #2

@timothee-durand

Description

@timothee-durand

Hello,

To begin thanks for your work !

I've one problem with this package. When I try to use it with Nuxt I've some compilation errors.
OS : windows 11
Nuxt : 2.15
In the terminal :

 ERROR  in ./node_modules/@georgedoescode/generative-utils/dist/index.js                                                      friendly-errors 21:00:32  

Module parse failed: Unexpected token (1:6477)                                                                                friendly-errors 21:00:32  
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
> var Ji=Object.create;var on=Object.defineProperty;var to=Object.getOwnPropertyDescriptor;var eo=Object.getOwnPropertyNames;var no=Object.getPrototypeO
f,ro=Object.prototype.hasOwnProperty;var io=t=>on(t,"__esModule",{value:!0});var U=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var oo= ...

(and all the file directly in the terminal)

And in the browser :

SyntaxError
Unexpected token 'export'

If you can help me I'll be glad to give more informations !
Thanks by advance !

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