-
Notifications
You must be signed in to change notification settings - Fork 52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Corrupted packages
file generated at build
#58
Comments
I just ran into this as well in Windows. Back in the day that file was a junction with an absolute path reference. Now it's a symlink with a relative path reference and it does not work. Not sure what should be done. |
This is probably why we're running into this problem. dart-lang/sdk#33966 Firebase CLI does not seem to like symlinks. I guess we could add a npm postbuild command that replaces Not sure who is creating the |
@hugocbpassos @gazialankus i am new with this package and node, can you show me a example project? i can't setup a readme example :( |
@basketball-ico StackOverflow is probably better for this. The readme file is quite sufficient, actually. Ask in SO and we can answer in more detail. |
@gazialankus Thanks, i have the same issue here and ##56 , which version of dart I need to use to make this work? i really want to test it |
I'm using Dart 2.3.2, I didn't try 2.4.0. |
@gazialankus I tested with Dart 2.1 - 2.2 - 2.3.2 - 2.41 - 2.5.0.2-dev-1 |
Wow you really tried all versions, huh. I'm sorry you're having this issue. I use IntelliJ, not VS Code. Did you really try the steps here one by one? https://github.com/pulyaevskiy/firebase-functions-interop/blob/master/README.md Could you try on the command line rather than VS Code? |
@gazialankus yes, check https://github.com/basketball-ico/functions_test- Also if I run
I solve with administrator command line but why I need to run this in an Administrator Command line? and when try
Also if I remove the
Thanks, please help me 🤗 |
This is what at also have. I remove the packages symlink and I also get a huge upload like 40mb. I'm able to use IntelliJ but I don't know about VS Code. I think the only real issue you have is about running it locally. You run it using npm. After adding this https://github.com/pulyaevskiy/firebase-functions-interop/blob/master/README.md#7-scripts-optional you can say If you fix your IDE, you will be same as what I have here... |
@gazialankus I solve the error of VScode by excluding the build folder for analysis like https://github.com/pulyaevskiy/firebase-functions-interop/blob/master/analysis_options.yaml, This is good? But i can't deploy
what is the solution you said
|
When I run
pub run build_runner build --output=build
as admin (#56), the corrupted filefunctions/build/node/packages
is generated.If I run
firebase deploy --debug --only functions
, I get the following error:After deleting
packages
, I'm able to deploy.I'm using the exact
pubspec.yaml
,node/index.dart
andbuild.yaml
, as shown in the readme.The text was updated successfully, but these errors were encountered: