Comments (8)
... 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.
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.
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.
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.
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.
Will add in environment variables to enable or disable mongo, firebase, target to finish by end of the week.
from cookbook.
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.
Fixed
from cookbook.
Related Issues (20)
- Make defaultRec into store HOT 2
- Just a question : The examples are working ?
- metadata from firestore HOT 3
- backend install failure at windows op. system HOT 2
- I did not find a way to say hello soooooo HOT 1
- [Questions] - General Questions HOT 2
- Is there a tutorial? HOT 8
- lots of errors HOT 3
- example-rest cannot be run : backend/models/user.js has wrong filename / VueCrudX cannot be loaded HOT 4
- missing init-db script HOT 3
- [QUESTION] - Other UI Libs HOT 12
- Small typo in backend/models/users.js file name HOT 4
- Questions about quick start HOT 4
- Make it PWA? HOT 2
- Question: Possible to auto-generate CRUD components from OpenAPI spec? HOT 3
- Quick Start error: Cannot find module './firebase.key.json' HOT 1
- CrudTable.vue select all (not working)
- CrudTable.vue - implement csv upload HOT 1
- Add github actions to deploy to GCP
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cookbook.