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

Fix frontend to run using yarn #1021

Open
2 tasks done
Hasteerp opened this issue Nov 27, 2024 · 6 comments
Open
2 tasks done

Fix frontend to run using yarn #1021

Hasteerp opened this issue Nov 27, 2024 · 6 comments
Assignees
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@Hasteerp
Copy link

Terms

Behavior

Current Behavior:

When you follow the steps under Contributing.md to run frontend using Yarn. It gives the following error.
Screenshot 2024-11-25 at 10 09 11 AM

The error suggests too many open files. Possible error is too many file watchers.

Expected Behavior:

Frontend should run locally using yarn. It should run without file watchers or an option to turn off these file watchers when trying to run locally. It should not try to open watchers in node_modules.

@Hasteerp Hasteerp added the bug Something isn't working label Nov 27, 2024
@andrewtavis
Copy link
Member

Thanks a lot for this issue, @Hasteerp! Would you have interest in looking in to this? We can also save it till you're done with the other issue.

@Hasteerp
Copy link
Author

Sure @andrewtavis , I would be happy to take this up once I am done working on the other issue.
But feel free to assign it to someone else if someone shows interest :)

@andrewtavis
Copy link
Member

Let's write when you're done with the other one then :) Thanks again!

@cquinn540
Copy link
Collaborator

Found what I think is the root cause: nuxt/nuxt#29744

I tried changing package.json to include:

  "resolutions": {
    "chokidar": "3.6.0",
    "playwright-core": "1.45.1"
  }

Reran yarn install I can start the frontend locally now. Can't fully test it because my backend keeps crashing:

django_backend  | Traceback (most recent call last):
django_backend  |   File "/usr/local/lib/python3.11/site-packages/django/db/backends/utils.py", line 105, in _execute
django_backend  |     return self.cursor.execute(sql, params)
django_backend  |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
django_backend  | psycopg2.errors.UndefinedTable: relation "entities_groupfaq" does not exist
django_backend  | LINE 1: DELETE FROM "entities_groupfaq" WHERE "entities_groupfaq"."g...
django_backend  |                     ^
django_backend  |
django_backend  |
django_backend  | The above exception was the direct cause of the following exception:
django_backend  |
django_backend  | Traceback (most recent call last):
django_backend  |   File "/app/manage.py", line 27, in <module>
django_backend  |     main()
django_backend  |   File "/app/manage.py", line 23, in main
django_backend  |     execute_from_command_line(sys.argv)
django_backend  |   File "/usr/local/lib/python3.11/site-packages/django/core/management/__init__.py", line 442, in execute_from_command_line
django_backend  |     utility.execute()
django_backend  |   File "/usr/local/lib/python3.11/site-packages/django/core/management/__init__.py", line 436, in execute
django_backend  |     self.fetch_command(subcommand).run_from_argv(self.argv)
django_backend  |   File "/usr/local/lib/python3.11/site-packages/django/core/management/base.py", line 413, in run_from_argv
django_backend  |     self.execute(*args, **cmd_options)
django_backend  |   File "/usr/local/lib/python3.11/site-packages/django/core/management/base.py", line 459, in execute
django_backend  |     output = self.handle(*args, **options)
django_backend  |              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
django_backend  |   File "/app/backend/management/commands/populate_db.py", line 45, in handle
django_backend  |     UserModel.objects.exclude(username="admin").delete()
django_backend  |   File "/usr/local/lib/python3.11/site-packages/django/db/models/query.py", line 1188, in delete
django_backend  |     deleted, _rows_count = collector.delete()
django_backend  |                            ^^^^^^^^^^^^^^^^^^
django_backend  |   File "/usr/local/lib/python3.11/site-packages/django/db/models/deletion.py", line 472, in delete
django_backend  |     count = qs._raw_delete(using=self.using)
django_backend  |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
django_backend  |   File "/usr/local/lib/python3.11/site-packages/django/db/models/query.py", line 1210, in _raw_delete
django_backend  |     cursor = query.get_compiler(using).execute_sql(CURSOR)
django_backend  |              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
django_backend  |   File "/usr/local/lib/python3.11/site-packages/django/db/models/sql/compiler.py", line 1562, in execute_sql
django_backend  |     cursor.execute(sql, params)
django_backend  |   File "/usr/local/lib/python3.11/site-packages/django/db/backends/utils.py", line 122, in execute
django_backend  |     return super().execute(sql, params)
django_backend  |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
django_backend  |   File "/usr/local/lib/python3.11/site-packages/django/db/backends/utils.py", line 79, in execute
django_backend  |     return self._execute_with_wrappers(
django_backend  |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
django_backend  |   File "/usr/local/lib/python3.11/site-packages/django/db/backends/utils.py", line 92, in _execute_with_wrappers
django_backend  |     return executor(sql, params, many, context)
django_backend  |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
django_backend  |   File "/usr/local/lib/python3.11/site-packages/django/db/backends/utils.py", line 100, in _execute
django_backend  |     with self.db.wrap_database_errors:
django_backend  |   File "/usr/local/lib/python3.11/site-packages/django/db/utils.py", line 91, in __exit__
django_backend  |     raise dj_exc_value.with_traceback(traceback) from exc_value
django_backend  |   File "/usr/local/lib/python3.11/site-packages/django/db/backends/utils.py", line 105, in _execute
django_backend  |     return self.cursor.execute(sql, params)
django_backend  |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

@cquinn540
Copy link
Collaborator

destroying and recreating my environment with docker-compose rm -f -v --env-file .env.dev fixed the database issue I ran into

@cquinn540 cquinn540 mentioned this issue Dec 4, 2024
2 tasks
@andrewtavis andrewtavis moved this from Todo to In Progress in activist Board Dec 4, 2024
@andrewtavis andrewtavis added the help wanted Extra attention is needed label Dec 4, 2024
@andrewtavis
Copy link
Member

Do you think anything else is needed here, @cquinn540?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
Status: In Progress
Development

No branches or pull requests

3 participants