Giter VIP home page Giter VIP logo

Comments (2)

webdiscus avatar webdiscus commented on August 26, 2024

Hallo @unit-404,

I can not reproduce your error message.
Can you please create small complete repo (package.json, webpack config, etc) with your issue message.

Following example:
index.pug

something
  if block
    block
  else
    #{""}

Generate the error message:

ERROR in ./src/index.pug           <== Exact in this FILE is an issue
Module build failed (from ../../../src/index.js):
Error:·
[pug-loader] Pug compilation failed.
Error: /Users/xxx/webpack/pug-loader/test/cases/exception-evaluate-template2/src/index.pug:6:5
    4| something
    5|   if block
  > 6|     block.                  <== Exact here is the problem
-----------^
    7|   else
    8|     #{\"\"}·
Anonymous blocks are not allowed unless they are part of a mixin.
    at Object.compile (/Users/xxx/webpack/pug-loader/src/index.js:272:26)
    at Object.call (/Users/xxx/webpack/pug-loader/src/index.js:297:11)·
webpack 5.90.1 compiled with 1 error in 176 ms"

from pug-loader.

unit-404 avatar unit-404 commented on August 26, 2024

Wait some week, I try to find time for make and give reproducable case.

from pug-loader.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.