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

Error with Pathing on Windows #48

Open
steved-83 opened this issue Feb 10, 2025 · 0 comments
Open

Error with Pathing on Windows #48

steved-83 opened this issue Feb 10, 2025 · 0 comments

Comments

@steved-83
Copy link

steved-83 commented Feb 10, 2025

We are having an issue with Pathing on Windows. When we use something like
<twig:Button :buttonLabel="buttonLabel" :buttonType="buttonType" :buttonSize="buttonSize" />

in one of our Twig Templates it gives the following error on Windows alone:
(you can see its acting like the \ are escape characters)

`ERROR in C:GitKrackenReposeventCalendarDrexel   emplatescomponentsButton.html.twig
Module build failed: UnhandledSchemeError: Reading from "C:GitKrackenReposeventCalendarDrexel   emplatescomponentsButton.html.twig" is not handled by plugins (Unhandled scheme).
Webpack supports "data:" and "file:" URIs by default.
You may need an additional plugin to handle "c:" URIs.`


This is what i found in the bundle file

(self["webpackChunk"] = self["webpackChunk"] || []).push([["QuickAction-stories"],{

/***/ "C:GitKrackenReposeventCalendarDrexel\templatescomponentsButton.html.twig":
/*!*******************************************************************************!*\
  !*** C:GitKrackenReposeventCalendarDrexel	emplatescomponentsButton.html.twig ***!
  \*******************************************************************************/
/***/ (() => {

throw new Error("Module build failed: UnhandledSchemeError: Reading from \"C:GitKrackenReposeventCalendarDrexel\templatescomponentsButton.html.twig\" is not handled by plugins (Unhandled scheme).\nWebpack supports \"data:\" and \"file:\" URIs by default.\nYou may need an additional plugin to handle \"c:\" URIs.\n    at C:\\GitKrackenRepos\\eventCalendarDrexel\\node_modules\\webpack\\lib\\NormalModule.js:986:10\n    at Hook.eval [as callAsync] (eval at create (C:\\GitKrackenRepos\\eventCalendarDrexel\\node_modules\\tapable\\lib\\HookCodeFactory.js:33:10), <anonymous>:6:1)\n    at Hook.CALL_ASYNC_DELEGATE [as _callAsync] (C:\\GitKrackenRepos\\eventCalendarDrexel\\node_modules\\tapable\\lib\\Hook.js:18:14)\n    at Object.processResource (C:\\GitKrackenRepos\\eventCalendarDrexel\\node_modules\\webpack\\lib\\NormalModule.js:982:8)\n    at processResource (C:\\GitKrackenRepos\\eventCalendarDrexel\\node_modules\\loader-runner\\lib\\LoaderRunner.js:222:11)\n    at iteratePitchingLoaders (C:\\GitKrackenRepos\\eventCalendarDrexel\\node_modules\\loader-runner\\lib\\LoaderRunner.js:173:10)\n    at runLoaders (C:\\GitKrackenRepos\\eventCalendarDrexel\\node_modules\\loader-runner\\lib\\LoaderRunner.js:402:2)\n    at NormalModule._doBuild (C:\\GitKrackenRepos\\eventCalendarDrexel\\node_modules\\webpack\\lib\\NormalModule.js:964:3)\n    at NormalModule.build (C:\\GitKrackenRepos\\eventCalendarDrexel\\node_modules\\webpack\\lib\\NormalModule.js:1157:15)\n    at C:\\GitKrackenRepos\\eventCalendarDrexel\\node_modules\\webpack\\lib\\Compilation.js:1422:12");

I've tried a lot of solutions in the issues of this GitHub repo but to no avail.

Any ideas? Again, this is windows only and only when we insert a twig component into another Twig Component.

Full QuickAction.html.twig file

{# templates/components/QuickAction.html.twig #}

{% props 
    buttonLabel,
    buttonType,
    buttonSize
%}

{% set quickaction = cva({
        args: {
            buttonLabel: 'Click Here',
            buttonType: "Approve",
            buttonSize: "Normal"
        },
    }) 
%}

<div class="quick-action-buttons">
<twig:Button :buttonLabel="buttonLabel" :buttonType="buttonType" :buttonSize="buttonSize" />
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant