Comments (4)
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.
This sounds like the circular reference issue as well (possible dupe of #10 depending on how we solve these).
from ncc.
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.
Fixed by #39
from ncc.
Related Issues (20)
- Source maps are generated incorrectly and cannot be debugged in vscode. HOT 2
- ESM + Relative imports without .js extension causes "ReferenceError: require is not defined in ES module scope" HOT 3
- ncc is unable to import third party modules via "import". Cannot read properties of undefined HOT 1
- How to include only internal monorepo packages / dependencies? HOT 3
- Incorrect Compilation of Firebase Parameterized Variables by ncc HOT 1
- ncc build fails with bun when node isn't installed
- NCC build fails when compiling a Custom Server NextJS app - ./static.edge is not exported from react-dom HOT 3
- bug TypeError: Cannot read property 'set' of undefined
- Option 'allowImportingTsExtensions' can only be used when either 'noEmit' or 'emitDeclarationOnly' is set. HOT 1
- BUG: Fails to bundle `[email protected]` HOT 1
- How compatible are paths that need to be dynamically loaded at ncc build time HOT 2
- Cannot bundle `@npmcli/arborist` HOT 3
- ESM mode still uses "require" within an ESM module HOT 6
- Java
- Confusing error message "Package path . is not exported from package" HOT 2
- Are there multiple js files in the directory packaged by NCC? HOT 2
- vercel/ncc
- Advantages over other bundlers HOT 4
- more documentation about `--v8-cache`
- ncc and prebuildify HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ncc.