-
-
Notifications
You must be signed in to change notification settings - Fork 533
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
Can't render pug files using electron-forge start
#291
Comments
You probably want to put that code in a block so formatting, etc. are preserved. |
@malept sorry for this.Now it is fixed |
I think it's because both electron-compile (a dependency of Forge) and electron-pug both intercept the |
It there anything I can do about that? |
You could try to use electron-userland/electron-compilers#66 plus electron-userland/electron-compile#215 and see if they work. (Put the electron-compilers branch in your devDependencies. You also would need to remove electron-pug.) |
Using |
chore: Update various dependencies
Please describe your issue:
Console output when you run
electron-forge
with the environment variableDEBUG=electron-forge:*
. (Instructions on how to do so here). Please include the stack trace if one exists.What command line arguments are you passing?
What does your
config.forge
data inpackage.json
look like?Please provide either a failing minimal testcase (with a link to the code) or detailed steps to
reproduce your problem. Using
electron-forge init
is a good starting point, if that is not thesource of your problem.
Hello I have created a simple app using
electron-forge init
Until here if I run
electron-forge start
the default app appears and everything is working fine.However in my app I want to use
pug
templates.To do this I have installedelectron-pug
using
npm install --save electron-pug
.Here is the complete code of my default
index.js
file after addingelectron-pug
:And here is the code for for
demo.pug
file:Now if I run
npm start
which in turn callselectron-forge start
my pug file won't render and it will log the following error in my console:Pug interceptor failed: Error: The scheme has been intercepted
Here is a screenshot of my app when running
npm start
"However if I run
electron src/index.js
from the root of my project folder my pug file will be rendered producing the following output:Any ideas how I can fix that.I really need to use
electron-forge
in some projects which useelectron-pug
The text was updated successfully, but these errors were encountered: