Git Product home page Git Product logo

Comments (8)

dmoebius avatar dmoebius commented on May 20, 2024

... and the top of the build log says:

$ npm start

> [email protected] start /home/dmoebius/src/vue-crud-x/example-spa
> concurrently "npm run rest" "npm run serve"

[0] 
[0] > [email protected] rest /home/dmoebius/src/vue-crud-x/example-spa
[0] > cd ../backend&&npm run-script dev
[0] 
[1] 
[1] > [email protected] serve /home/dmoebius/src/vue-crud-x/example-spa
[1] > vue-cli-service serve --port 8080
[1] 
[0] 
[0] > functions@ dev /home/dmoebius/src/vue-crud-x/backend
[0] > set NODE_ENV=development&&nodemon index.js
[0] 
[1]  INFO  Starting development server...
[0] [nodemon] 1.19.1
[0] [nodemon] to restart at any time, enter `rs`
[0] [nodemon] watching: *.*
[0] [nodemon] starting `node index.js`
[0] Environment:  undefined
[0] HTTPS:  No
[0] env development
[0] KEYV_CACHE undefined
[0] use map
[0] internal/modules/cjs/loader.js:583
[0]     throw err;
[0]     ^
[0] 
[0] Error: Cannot find module '../models/User'
[0]     at Function.Module._resolveFilename (internal/modules/cjs/loader.js:581:15)
[0]     at Function.Module._load (internal/modules/cjs/loader.js:507:25)
[0]     at Module.require (internal/modules/cjs/loader.js:637:17)
[0]     at require (internal/modules/cjs/helpers.js:22:18)
[0]     at Object.<anonymous> (/home/dmoebius/src/vue-crud-x/backend/services/index.js:9:14)
[0]     at Module._compile (internal/modules/cjs/loader.js:689:30)
[0]     at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10)
[0]     at Module.load (internal/modules/cjs/loader.js:599:32)
[0]     at tryModuleLoad (internal/modules/cjs/loader.js:538:12)
[0]     at Function.Module._load (internal/modules/cjs/loader.js:530:3)
[0]     at Module.require (internal/modules/cjs/loader.js:637:17)
[0]     at require (internal/modules/cjs/helpers.js:22:18)
[0]     at Object.<anonymous> (/home/dmoebius/src/vue-crud-x/backend/middleware/auth.js:1:100)
[0]     at Module._compile (internal/modules/cjs/loader.js:689:30)
[0]     at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10)
[0]     at Module.load (internal/modules/cjs/loader.js:599:32)
[0] [nodemon] app crashed - waiting for file changes before starting...
[1] <s> [webpack.Progress] 0% compiling
[1] <s> [webpack.Progress] 10% building 0/0 modules 0 active 
...

from cookbook.

dmoebius avatar dmoebius commented on May 20, 2024

I see. cp example-app/cfg.sample.json example-app/cfg.json helped a bit, but I need to fill in projectId and apiKey, or else I will get "projectId must be a string in FirebaseApp.options" or "Your API key is invalid, please check you have copied it correctly." Seems that example-spa cannot run without firebase db, or can it?

from cookbook.

ais-one avatar ais-one commented on May 20, 2024

Hi,

Your problem has got to do with the backend folder...

models/User cannot be found because the file in user.js instead of User.js in my repo.

I am developing on windows and casing may have caused a problem...

You can rename the file from user.js to User.js to get it working...

I will fix it in next release, sometime early next month...

from cookbook.

dmoebius avatar dmoebius commented on May 20, 2024

Ok, renaming user.js to User.js helped removing the first error. But the demo cannot run without a proper cfg.json with valid projectId and apiKey, can it?

from cookbook.

ais-one avatar ais-one commented on May 20, 2024

Hi...

You are right, let me work on a fix... If you need to get it working quick...

Search for all @/firebase, comment it out...

And comment out anything using the firebase stuff...

You may need to remove those with @/mongo also...

from cookbook.

ais-one avatar ais-one commented on May 20, 2024

Will add in environment variables to enable or disable mongo, firebase, target to finish by end of the week.

from cookbook.

ais-one avatar ais-one commented on May 20, 2024

I pushed to develop branch... I have made fixes...

You can use the cfg.json file in there (with empty keys), I will make further improvement on this.

from cookbook.

ais-one avatar ais-one commented on May 20, 2024

Fixed

#73

from cookbook.

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.