Code Monkey home page Code Monkey logo

Comments (5)

ZatolokinPavel avatar ZatolokinPavel commented on June 30, 2024 1

This is not a solution! Sorcemap will become useless if the galp-include is connected before or after the sorcemap.

from gulp-include.

vrugtehagel avatar vrugtehagel commented on June 30, 2024 1

Here's a solution: simply downgrade to 2.3.1.

The problem lies in the fact that [email protected] uses [email protected] while [email protected] uses [email protected] (those are the two versions I tested, anyway). The source-map package uses promises in version 0.7.3 (the SourceMapConsumer returns one) but doesn't in version 0.5.7. gulp-include calls eachMapping on the result of new SourceMapConsumer(...), which clearly breaks when that returns a promise.

from gulp-include.

coaperator avatar coaperator commented on June 30, 2024

I have the same problem
TypeError: resultMap.eachMapping is not a function

how to solve?

from gulp-include.

6elkir avatar 6elkir commented on June 30, 2024

I have the same problem

TypeError: resultMap.eachMapping is not a function

Need fix it!

from gulp-include.

callaginn avatar callaginn commented on June 30, 2024

Has anyone figured out how to fix this issue without downgrading? I'm using Gulp 4, so can't simply downgrade gulp-include to version 2.3.1 without even more stuff breaking.

Here's the type error I get whenever I try to compile:

TypeError: resultMap.eachMapping is not a function
    at processInclude (/Users/stephen/Sites/templates/twig-site/node_modules/gulp-include/index.js:206:39)
    at include (/Users/stephen/Sites/templates/twig-site/node_modules/gulp-include/index.js:58:26)
    at wrappedMapper (/Users/stephen/Sites/templates/twig-site/node_modules/map-stream/index.js:83:19)
    at Stream.stream.write (/Users/stephen/Sites/templates/twig-site/node_modules/map-stream/index.js:95:21)
    at DestroyableTransform.ondata (/Users/stephen/Sites/templates/twig-site/node_modules/readable-stream/lib/_stream_readable.js:619:20)
    at DestroyableTransform.emit (node:events:527:28)
    at DestroyableTransform.emit (node:domain:537:15)
    at addChunk (/Users/stephen/Sites/templates/twig-site/node_modules/readable-stream/lib/_stream_readable.js:291:12)
    at readableAddChunk (/Users/stephen/Sites/templates/twig-site/node_modules/readable-stream/lib/_stream_readable.js:278:11)
    at DestroyableTransform.Readable.push (/Users/stephen/Sites/templates/twig-site/node_modules/readable-stream/lib/_stream_readable.js:245:10)
[10:07:08] Finished 'scss' after 819 ms
[10:07:18] The following tasks did not complete: watch, <series>, <parallel>, js
[10:07:18] Did you forget to signal async completion?
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

from gulp-include.

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.