Giter Site home page Giter Site logo

`pdfkit` errors about ncc HOT 4 CLOSED

vercel avatar vercel commented on August 14, 2024
`pdfkit` errors

from ncc.

Comments (4)

rauchg avatar rauchg commented on August 14, 2024

Still a problem with @zeit/[email protected]

/Users/rauchg/Projects/nda/out.js:1
(function (exports, require, module, __filename, __dirname) { "use strict";function _interopDefault(e){return e&&"object"==typeof e&&"default"in e?e.default:e}var string_decoder=_interopDefault(require("string_decoder")),buffer=_interopDefault(require("buffer")),stream=_interopDefault(require("stream")),util=_interopDefault(require("util")),events=_interopDefault(require("events")),zlib=_interopDefault(require("zlib")),fs=_interopDefault(require("fs")),commonjsGlobal="undefined"!=typeofwindow?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function unwrapExports(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function createCommonjsModule(e,t){return e(t={exports:{}},t.exports),t.exports}function getCjsExportFromNamespace(e){return e&&e.default||e}var key,reference=createCommonjsModule(function(e){(function(){var t,r,n,i,a=function(e,t){return function(){return e.apply(t,arguments)}},o={}.hasOwnProperty;i

TypeError: Cannot read property 'prototype' of undefined
    at /Users/rauchg/Projects/nda/out.js:1:1029768
    at /Users/rauchg/Projects/nda/out.js:1:1029820
    at /Users/rauchg/Projects/nda/out.js:1:1031922
    at /Users/rauchg/Projects/nda/out.js:1:1031939
    at createCommonjsModule (/Users/rauchg/Projects/nda/out.js:1:728)
    at Object.<anonymous> (/Users/rauchg/Projects/nda/out.js:1:1029348)
    at Module._compile (internal/modules/cjs/loader.js:707:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:718:10)
    at Module.load (internal/modules/cjs/loader.js:605:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:544:12)

from ncc.

guybedford avatar guybedford commented on August 14, 2024

This sounds like the circular reference issue as well (possible dupe of #10 depending on how we solve these).

from ncc.

guybedford avatar guybedford commented on August 14, 2024

Code in question here is exactly -

  var AFMFont, PDFFont, StandardFont, fs$$1,
    extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; },
    hasProp = {}.hasOwnProperty;

so it does seem like a cycle bug to me. Adding cycle label.

from ncc.

rauchg avatar rauchg commented on August 14, 2024

Fixed by #39

from ncc.

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.