Coder Social home page Coder Social logo

Comments (5)

developer239 avatar developer239 commented on May 18, 2024

Also I was not able to start the application on linux. I have built files. I have migrated and seeded the database. But when I run start I get sql select error telling me something about unexistent table.

from apollo-universal-starter-kit.

developer239 avatar developer239 commented on May 18, 2024
> [email protected] start C:\Projekty\apollo-fullstack-starter-kit-master
> node --harmony ./build/server

"createFragment" is deprecated and will be removed in version 0.6, please refer to the documentation for how to define fragments: http://dev.apollodata.com/react/fragments.html.
backend info API is now running on port 8080
Error: SQLITE_ERROR: no such table: count
backend error RENDERING ERROR: { Error
    at new ApolloError (C:\Projekty\apollo-fullstack-starter-kit-master\src\errors\ApolloError.ts:61:18)
    at C:\Projekty\apollo-fullstack-starter-kit-master\src\core\QueryManager.ts:367:31
    at C:\Projekty\apollo-fullstack-starter-kit-master\src\core\QueryManager.ts:1057:13
    at Array.forEach (native)
    at C:\Projekty\apollo-fullstack-starter-kit-master\src\core\QueryManager.ts:1052:19
    at C:\Projekty\apollo-fullstack-starter-kit-master\node_modules\lodash\_createBaseFor.js:17:11
    at baseForOwn (C:\Projekty\apollo-fullstack-starter-kit-master\node_modules\lodash\_baseForOwn.js:13:20)
    at forOwn (C:\Projekty\apollo-fullstack-starter-kit-master\node_modules\lodash\forOwn.js:33:20)
    at QueryManager.broadcastQueries (C:\Projekty\apollo-fullstack-starter-kit-master\src\core\QueryManager.ts:1047:5)
    at Array.<anonymous> (C:\Projekty\apollo-fullstack-starter-kit-master\src\core\QueryManager.ts:234:14)
    at dispatch (C:\Projekty\apollo-fullstack-starter-kit-master\node_modules\redux\lib\createStore.js:186:19)
    at C:\Projekty\apollo-fullstack-starter-kit-master\src\ApolloClient.ts:504:24
    at Object.dispatch (C:\Projekty\apollo-fullstack-starter-kit-master\src\store.ts:72:12)
    at C:\Projekty\apollo-fullstack-starter-kit-master\src\core\QueryManager.ts:952:22
    at process._tickCallback (internal/process/next_tick.js:103:7)
  graphQLErrors:
   [ { message: 'select * from "count" limit 1 - SQLITE_ERROR: no such table: count',
       locations: [ [Object] ] } ],
  networkError: null,
  message: 'GraphQL error: select * from "count" limit 1 - SQLITE_ERROR: no such table: count',
  extraInfo: undefined }
Error: SQLITE_ERROR: no such table: count
backend error RENDERING ERROR: { Error
    at new ApolloError (C:\Projekty\apollo-fullstack-starter-kit-master\src\errors\ApolloError.ts:61:18)
    at C:\Projekty\apollo-fullstack-starter-kit-master\src\core\QueryManager.ts:367:31
    at C:\Projekty\apollo-fullstack-starter-kit-master\src\core\QueryManager.ts:1057:13
    at Array.forEach (native)
    at C:\Projekty\apollo-fullstack-starter-kit-master\src\core\QueryManager.ts:1052:19
    at C:\Projekty\apollo-fullstack-starter-kit-master\node_modules\lodash\_createBaseFor.js:17:11
    at baseForOwn (C:\Projekty\apollo-fullstack-starter-kit-master\node_modules\lodash\_baseForOwn.js:13:20)
    at forOwn (C:\Projekty\apollo-fullstack-starter-kit-master\node_modules\lodash\forOwn.js:33:20)
    at QueryManager.broadcastQueries (C:\Projekty\apollo-fullstack-starter-kit-master\src\core\QueryManager.ts:1047:5)
    at Array.<anonymous> (C:\Projekty\apollo-fullstack-starter-kit-master\src\core\QueryManager.ts:234:14)
    at dispatch (C:\Projekty\apollo-fullstack-starter-kit-master\node_modules\redux\lib\createStore.js:186:19)
    at C:\Projekty\apollo-fullstack-starter-kit-master\src\ApolloClient.ts:504:24
    at Object.dispatch (C:\Projekty\apollo-fullstack-starter-kit-master\src\store.ts:72:12)
    at C:\Projekty\apollo-fullstack-starter-kit-master\src\core\QueryManager.ts:952:22
    at process._tickCallback (internal/process/next_tick.js:103:7)
  graphQLErrors:
   [ { message: 'select * from "count" limit 1 - SQLITE_ERROR: no such table: count',
       locations: [ [Object] ] } ],
  networkError: null,
  message: 'GraphQL error: select * from "count" limit 1 - SQLITE_ERROR: no such table: count',
  extraInfo: undefined }

from apollo-universal-starter-kit.

larixer avatar larixer commented on May 18, 2024

You are running undocumented commands. Please either follow instruction exactly as provided in Readme or investigate things yourself, the application is not complex.

from apollo-universal-starter-kit.

larixer avatar larixer commented on May 18, 2024

@developer239 The problem, you have in the first comment is difficult for me to diagnose, because there is no relevant information in the error message from npm. Please try to localize offending code yourself.

The problem in your 3rd comment with missing count table is because you run migrate in dev mode and you are running Node.js app in prod mode, hence it complains that count table is missing in ./prod-db.sqlite3.

Either start app in dev mode e.g. npm start or run seed and migrate in prod mode via npm i --prod - this will run postinstall script in prod mode which runs seed and migrate for prod database.

from apollo-universal-starter-kit.

larixer avatar larixer commented on May 18, 2024

Closing because of inactivity. Please reopen when you will have the time to discuss this issue.

from apollo-universal-starter-kit.

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.