Skip to content
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

How to open/fork angular-google-charts in StackBlitz #206

Closed
kussmaul opened this issue Feb 19, 2021 · 2 comments
Closed

How to open/fork angular-google-charts in StackBlitz #206

kussmaul opened this issue Feb 19, 2021 · 2 comments
Labels
bug Something isn't working

Comments

@kussmaul
Copy link
Contributor

Bug Report

Description

I can't fork/open and run angular-google-charts in StackBlitz. I have minimal experience with StackBlitz, so maybe this is simple. :-)

To reproduce

  1. Go to stackblitz.com, click "New Project" (top right corner).

  2. In new project, click "Connect repository" (top left corner).

  3. In dialog, click "import an existing repository" and enter url: https://github.com/FERNman/angular-google-charts (or my new fork, https://github.com/kussmaul/angular-google-charts)

  4. Observe errors in browser:

     Import error, can't find files:
     /src/index.html
     /src/polyfills.ts
     /src/main.ts
     /src/styles.css
    
  5. In angular.json, notice that these paths exist for "Playground". In Settings, change "Default Project" from "angular-google-charts" to "playground". (not sure if this is correct)

  6. Observe errors in browser:

     Import error, can't find files:
     /apps/playground/apps/playground/src/index.html
     /apps/playground/apps/playground/src/polyfills.ts
     /apps/playground/apps/playground/src/main.ts
     /apps/playground/apps/playground/src/styles.scss
    
  7. In angular.json, notice that "apps/playground" appears in "root" and in paths, so remove "apps/playground" from paths for index, main, polyfills, main, and styles.

  8. Observe error in browser:

    Can't find package: angular-google-charts
    
  9. If I click "Install Package", the app loads successfully, but Stackblitz is using the package, not the repository.

  10. Here is the resulting Stackblitz: https://stackblitz.com/edit/angular-ivy-vxm1ln?file=angular.json

@kussmaul kussmaul added the bug Something isn't working label Feb 19, 2021
@kussmaul
Copy link
Contributor Author

could be a StackBlitz limitation, since it seems related to:
stackblitz/core#220
stackblitz/core#530 (closed, refers to 220)
stackblitz/core#533 (closed, refers to 220)

@FERNman
Copy link
Owner

FERNman commented Feb 22, 2021

After going over the issues, I suppose what you observed is related to them and not a problem with the config.

If someone still manages to "fix" the config in a way so that it's working similarly to how it currently does but allows forking the repository on Stackblitz, I'd be happy to accept a PR!

@FERNman FERNman closed this as completed Sep 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants