Skip to content
This repository has been archived by the owner on Feb 16, 2024. It is now read-only.

Error parsing triggers: Cannot find module ... #2

Open
Seanitzel opened this issue Oct 13, 2022 · 2 comments
Open

Error parsing triggers: Cannot find module ... #2

Seanitzel opened this issue Oct 13, 2022 · 2 comments

Comments

@Seanitzel
Copy link

Hey, was hopeful when i saw this but unfortunately couldn't make it work...

I'm using turborepo as well and i tried your script and when i try to deploy it still can't find the dependency for some reason.

I checked and all the three steps seem to work correctly -

  1. all the deps for the functions project are copied to the out dir.
  2. A .firebase-yarn-workspaces is created inside the functions project and all the deps are inside.
  3. In the package.json file the dependency is pointing to file:...

Any ideas what i might be missing?

Node version: 14.19.1
Yarn version: 1.22.19

Thanks for any help!

@willviles
Copy link
Owner

willviles commented Oct 15, 2022

👋 Hey, I'm unsure, but perhaps check...

  1. You've defined all workspace dependencies in package.json using "foo": "*" syntax (check recursively, inside all workspaces package.json files, as this traverses through all child dependencies to modify references)
  2. You've not yarn linked any dependencies
  3. You've attempted to run the local functions emulator from the Turbo ./out dir

@egecavusoglu
Copy link
Contributor

Please include logs so that others can take a look.

I got it to working very easily with the turborepo example, @willviles thank you so much for this great tool.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants