studieren-ohne-grenzen / website

The shiny new website of Studieren Ohne Grenzen
3 stars 2 forks source link

Cannot reference assets in content folder from components #14

Closed daniel-lerch closed 8 months ago

daniel-lerch commented 8 months ago

Steps to reproduce:

  1. Clone repository
  2. yarn install
  3. yarn run dev

Expected behavior:

Development mode starts without errors.

Actual behavior:

I get an error message:

This dependency was not found:                                                                friendly-errors 12:40:25
                                                                                              friendly-errors 12:40:25
[friendly-errors 12:40:25] * static/Logo.png in ./node_modules/babel-loader/lib??ref--2-0!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/vue-loader/lib??vue-loader-options!./components/mobileMenu.vue?vue&type=template&id=286d981c

System information:

Additional context

It seems that assets in content folder cannot be referenced from components that are built using webpack. I suggest to move static content that is hard-coded anyhow from website-content to the website repository to resolve these errors. Changes to logos would require a pull request or write permissions to the code repository then, but as SOG does not change its corporate identity each year, that would be acceptable in my opinion.