Skip to content
This repository has been archived by the owner on Jul 19, 2024. It is now read-only.

Error: Cannot find module . #80

Open
andrewkdouglas opened this issue Apr 24, 2018 · 0 comments
Open

Error: Cannot find module . #80

andrewkdouglas opened this issue Apr 24, 2018 · 0 comments

Comments

@andrewkdouglas
Copy link

Hi,

No matter what I try I hit the same bug while trying to use this package. funcpack pack ./ runs successfully, but trying to start the functions (on localhost or in Azure) results in the error "Error: Cannot find module ."

It seems to be comming from this code block in index.js (the one generated by funcpack)

var UglifyJS = exports;
var FILES = UglifyJS.FILES = [
    "../lib/utils.js",
    "../lib/ast.js",
    "../lib/parse.js",
    "../lib/transform.js",
    "../lib/scope.js",
    "../lib/output.js",
    "../lib/compress.js",
    "../lib/sourcemap.js",
    "../lib/mozilla-ast.js",
    "../lib/propmangle.js",
    "./exports.js",
].map(function(file){
    return /*require.resolve*/(!(function webpackMissingModule() { var e = new Error("Cannot find module \".\""); e.code = 'MODULE_NOT_FOUND'; throw e; }()));
});

This seems to be similar to webpack-contrib/uglifyjs-webpack-plugin#226 but I don't see why UglifyJS would be included by funcpack.

Thanks

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant