project-nv / night-vision

Highly customizable charting library, created for professional traders
https://nightvision.dev
MIT License
250 stars 58 forks source link

Nuxt3 Scripts Not Working #86

Closed xtrmus closed 1 year ago

xtrmus commented 1 year ago

Describe the bug

I have a javascript nuxt test project to play with the nv library. I've created a test page which looks like:

There is no problem in the code or console section.

Code : image image

RSI Navy: image

The RSI dashboard opens. However, no data is coming. There is an error only in the nuxt server.

image

image

Reproduction

https://nightvision.dev/guide/built-in-indicators/RSI.html

Steps to reproduce

No response

Javascript Framework

vue

Logs

No response

Validations

mariusvigariu commented 1 year ago

This does not look like a Nuxt issue, more like how you define your RSI script. When pushing a pane, try sending an empty array for overlays and for scripts something like [{ type: 'RSI' }] should do the trick.

Also you don't need to import RSI as it's already built in.

C451 commented 1 year ago

Seems solved