Giter VIP home page Giter VIP logo

nx-cloud-functions-deployer's Issues

cloud caching

@snorreks
thanks for the updates ^^

sadly now I have this issue but the deployment working as usual I think it's cloud caching again.

getOptionsFromCode SyntaxError: Expected property name or '}' in JSON at position 3
at JSON.parse ()
at wt (/home/mostafa/Documents/Firebase-NX/node_modules/.pnpm/[email protected][email protected]/node_modules/nx-cloud-functions-deployer/executors/deploy/index.js:12:5728)
at Ue (/home/mostafa/Documents/Firebase-NX/node_modules/.pnpm/[email protected][email protected]/node_modules/nx-cloud-functions-deployer/executors/deploy/index.js:12:4845)
at async Promise.all (index 2)
at async qe (/home/mostafa/Documents/Firebase-NX/node_modules/.pnpm/[email protected][email protected]/node_modules/nx-cloud-functions-deployer/executors/deploy/index.js:12:7682)
at async Promise.all (index 0)
at async Mt (/home/mostafa/Documents/Firebase-NX/node_modules/.pnpm/[email protected][email protected]/node_modules/nx-cloud-functions-deployer/executors/deploy/index.js:30:3766)
at async promiseToIterator (/home/mostafa/Documents/Firebase-NX/node_modules/.pnpm/nx@17.2.7_@swc-node+register@1.6.8_@swc[email protected]/node_modules/nx/src/command-line/run/run.js:30:11)
at async getLastValueFromAsyncIterableIterator (/home/mostafa/Documents/Firebase-NX/node_modules/.pnpm/nx@17.2.7_@swc-node+register@1.6.8_@swc[email protected]/node_modules/nx/src/utils/async-iterator.js:13:19)
at async iteratorToProcessStatusCode (/home/mostafa/Documents/Firebase-NX/node_modules/.pnpm/nx@17.2.7_@swc-node+register@1.6.8_@swc[email protected]/node_modules/nx/src/command-line/run/run.js:41:29)

Error: spawn node ENOENT

at ChildProcess._handle.onexit (node:internal/child_process:286:19)
at onErrorNT (node:internal/child_process:484:16)
at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {
errno: -2,
code: 'ENOENT',
syscall: 'spawn node',
path: 'node',
spawnargs: [
'--no-warnings',
'--import',
'tsx',
'********'
]
}
I got this error when trying to deploy.

error when trying emulating rules

is the structure changed for the rules?
NX ENOENT: no such file or directory, scandir '/home/mostafa/Documents/Firebase-NX/apps/rules/src/controllers'

Build / emulate

Hi, how are the development process supposed to work with this sctructure? Looking at the code I see that you have an emulate target but it is not documentet, the same with build. Am I supposed to keep a separate firebase.json to emulate all the functions at once? And build using deploy --dry? (the build target seem to have some issues with paths when called directly)

Realtime database vs firestore

Hi, the documentation states that database and firestore will behave the same structurally. However, it seems there are some issues with using this with realtime db, first of all there are no helpers for rtdb triggers so only way is to use the onValueCreated/Deleted/Updated, but then you'll have to provide the ref yourself and the path from the structure isn't used if I understand correctly.

Also, if you have the same collections in both firestore and database the triggers will get the same names and files are overwritten. Maybe prefix (or suffix) these triggers optionally with fs_ and db_/rt_ ?

Since rtdb triggers also have the option to have more advanced patterns inside the [] identifier (e.g ref: "/user/{uid=*@gmail.com}") and also that triggers react to both /user/123 and /user/123/notification/123/message this structure might not be suitable (or at least limitations should be documented)

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.