Code Monkey home page Code Monkey logo

Comments (5)

Issues-translate-bot avatar Issues-translate-bot commented on June 21, 2024

Bot detected the issue body's language is not English, translate it automatically.


Title: [Bug] Unable to import local json data

from chatgpt-next-web.

Dean-YZG avatar Dean-YZG commented on June 21, 2024

do you have any screenshot about error log in browser devtool, I need know the detail about the error

from chatgpt-next-web.

hugo0819 avatar hugo0819 commented on June 21, 2024

It only shows import failure and there is no extra display

from chatgpt-next-web.

Ajianxian avatar Ajianxian commented on June 21, 2024

这是因为v2.11.2及以前的版本源码在导出时是使用的二进制格式导出,所以导入时解析失败了。
我的解决方法是本地拉取对应历史版本的代码,然后把utils.ts#L59这块的代码换成最新版本的代码,然后再使用visual studio重新打包出来一个应用程序文件,运行后用新的代码导出文件,就可以正常进行导入了。
或者降级成v2.9.7版本试试,这个版本源码正常,导出的文件应该也是可以正常导入的

from chatgpt-next-web.

Issues-translate-bot avatar Issues-translate-bot commented on June 21, 2024

Bot detected the issue body's language is not English, translate it automatically.


This is because v2.11.2 and previous version source code uses the binary format when exporting Exported, so parsing failed during import.
My solution is to locally pull the code corresponding to the historical version, then replace the code in utils.ts#L59 with the latest version, and then use visual studio to repackage an application file, and use the new one after running it. The code export file can be imported normally.

from chatgpt-next-web.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.