Skip to content

TwigException: Unable to find template file <hash> using webpack resolve #42

@larsboldt

Description

@larsboldt

Instead of using relative paths in includes in twig files we define a base path for resolving files in webpack resolve modules config.

Then we can write include 'path/to/file.twig' instead of '../../../file.twig' in one context and '../file.twig' in another context.

However, when doing this webpack build crash with following message:

ERROR in Template execution failed: TwigException: Unable to find template file 4a3a762861ed317664eb1c1814e583128a01b7c98ab3dff85c81c19f205b14e9138bcc288a085991f6f13a3fcc4eb883cd3e984abaa13f5353799ac8e3350bdb

ERROR in   Error: Unable to find template file 4a3a762861ed317664eb1c1814e583128a01b7c98ab3dff85c81c19f205b14e9138bcc288a085991f6f13a3fcc4e  b883cd3e984abaa13f5353799ac8e3350bdb


ERROR in Template execution failed: TwigException: Unable to find template file cf0210d582a43343c2e99ae79fb557adf71168a044b412308a365be5af4a9d32dc511b91d584bb547ab8f3da0453d19e2ba01ae3b47baa9dac9b45489aacb543

ERROR in   Error: Unable to find template file cf0210d582a43343c2e99ae79fb557adf71168a044b412308a365be5af4a9d32dc511b91d584bb547ab8f3da0453  d19e2ba01ae3b47baa9dac9b45489aacb543

Any ideas?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions