GithubHelp home page GithubHelp logo

emilamaj / bookwriter Goto Github PK

View Code? Open in Web Editor NEW
52.0 52.0 15.0 340 KB

Let AI generate a complete book simply by providing a title and a description

HTML 1.71% CSS 25.60% JavaScript 72.68%
artificial-intelligence book-generator chatgpt large-language-models openai-api

bookwriter's People

Contributors

emilamaj avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

bookwriter's Issues

Error when generating outline

Issue when I press to generate an ouline:

Unhandled Rejection (TypeError): Cannot read properties of undefined (reading 'split')
_callee$
C:/Users/Julian/Documents/GitHub/bookwriter/src/App.js:60
57 | });
58 | let result = await resultPromise;
59 | // Remove all the lines before and including "# Outline"

60 | result = result.split("# Outline")[1];
| ^ 61 | console.log("Raw outline: ", result)
62 | setBook({
63 | ...book,
View compiled
tryCatch
C:/Users/Julian/Documents/GitHub/bookwriter/src/App.js:2
1 | // This is the main component of the app. It handles the state of the app and renders the appropriate view based on the currentView state.
2 |
3 | import React, { useState } from 'react';
4 | import DescriptionView from './Description';
5 | import OutlineView from './Outline';
View compiled
Generator.
C:/Users/Julian/Documents/GitHub/bookwriter/src/App.js:2
1 | // This is the main component of the app. It handles the state of the app and renders the appropriate view based on the currentView state.
2 |
3 | import React, { useState } from 'react';
4 | import DescriptionView from './Description';
5 | import OutlineView from './Outline';
View compiled
Generator.next
C:/Users/Julian/Documents/GitHub/bookwriter/src/App.js:2
1 | // This is the main component of the app. It handles the state of the app and renders the appropriate view based on the currentView state.
2 |
3 | import React, { useState } from 'react';
4 | import DescriptionView from './Description';
5 | import OutlineView from './Outline';
View compiled
▶ 2 stack frames were collapsed.
This screen is visible only in development. It will not appear if the app crashes in production.
Open your browser’s developer console to further inspect this error.

Error when starting application

It starts the browser and then says this on the web page:

Failed to compile.

./src/ContentGeneration.js 212:54
Module parse failed: Unexpected token (212:54)
You may need an appropriate loader to handle this file type.
| type: "text",
| name: "content",

value: bookData.content[bookData.selectedChapter]?.[bookData.selectedSection]?.[bookData.selectedItem]?.[bookData.selectedPart] ?? 'Select part',

| __self: _this,
| __source: {

提问

我想知道如何使用这个app,怎么安装它呢

App isn't working for me: Outline never gets generated

Hello. I clicked "Generate" on the outline page. It says "generating" and then nothing ever comes up. I looked at the console and I got this:

[email protected] start
react-scripts start

Browserslist: caniuse-lite is outdated. Please run:
npx update-browserslist-db@latest
Why you should do it regularly: https://github.com/browserslist/update-db#readme
(node:1696) [DEP_WEBPACK_DEV_SERVER_ON_AFTER_SETUP_MIDDLEWARE] DeprecationWarning: 'onAfterSetupMiddleware' option is deprecated. Please use the 'setupMiddlewares' option.
(Use node --trace-deprecation ... to show where the warning was created)
(node:1696) [DEP_WEBPACK_DEV_SERVER_ON_BEFORE_SETUP_MIDDLEWARE] DeprecationWarning: 'onBeforeSetupMiddleware' option is deprecated. Please use the 'setupMiddlewares' option.
Starting the development server...
Compiled with warnings.

Warning
(51:5) autoprefixer: end value has mixed support, consider using flex-end instead

Search for the keywords to learn more about each warning.
To ignore, add // eslint-disable-next-line to the line before.

WARNING in ./src/Description.css (./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[1].oneOf[5].use[1]!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].oneOf[5].use[2]!./node_modules/source-map-loader/dist/cjs.js!./src/Description.css)
Module Warning (from ./node_modules/postcss-loader/dist/cjs.js):
Warning

(51:5) autoprefixer: end value has mixed support, consider using flex-end instead

webpack compiled with 1 warning

Doesn't seem to compile anything.

image

Warning (51:5) autoprefixer: end value has mixed support, consider using flex-end instead [eslint] src\Utils.js Line 115:1: Assign object to a variable before exporting as module default import/no-anonymous-default-export Search for the keywords to learn more about each warning. To ignore, add // eslint-disable-next-line to the line before. WARNING in ./src/Description.css (./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[1].oneOf[5].use[1]!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].oneOf[5].use[2]!./node_modules/source-map-loader/dist/cjs.js!./src/Description.css) Module Warning (from ./node_modules/postcss-loader/dist/cjs.js): Warning (51:5) autoprefixer: end value has mixed support, consider using flex-end instead WARNING in [eslint] src\Utils.js Line 115:1: Assign object to a variable before exporting as module default import/no-anonymous-default-export webpack compiled with 2 warnings eprecated. Please use the 'setupMiddlewares' option. (Use node --trace-deprecation ... to show where the warning was created) (node:11356) [DEP_WEBPACK_DEV_SERVER_ON_BEFORE_SETUP_MIDDLEWARE] DeprecationWarning: 'onBeforeSetupMiddleware' option is deprecated. Please use the 'setupMiddlewares' option.

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.