Skip to content

Packed for Linux - "Cannot find module './dist'" #93

Description

@mpuz

Node 16.17.0

"dependencies": {
    "@nodegui/vue-nodegui": "0.0.4",
    "@vue/compiler-sfc": "^3.0.1",
    "bonjour": "^3.5.0",
    "css-loader": "^3.6.0",
    "file-loader": "^5.0.2",
    "mini-css-extract-plugin": "^0.9.0",
    "node-loader": "^0.6.0",
    "tree-kill": "^1.2.2",
    "url-loader": "^3.0.0",
    "vue-loader": "16.0.0-beta.7",
    "webpack": "^4.43.0",
    "webpack-cli": "^3.3.12"
  },
"devDependencies": {
    "@nodegui/packer": "^1.5.0"
  }

Following procedure :

npx nodegui-packer --init MyApp
npm run build
npx nodegui-packer --pack <path to dist>

Creates folder with package , including desktop file and Appimage, but after running Appimage from terminal produces error:

........................../vue-nodegui-starter/deploy/linux/build/sl$ ./Application-x86_64.AppImage 
internal/modules/cjs/loader.js:1023
  throw err;
  ^

Error: Cannot find module './dist'
Require stack:
- /tmp/.mount_ApplicepqAX0/index.js
- internal/preload
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:1020:15)
    at Function.Module._load (internal/modules/cjs/loader.js:890:27)
    at Module.require (internal/modules/cjs/loader.js:1080:19)
    at require (internal/modules/cjs/helpers.js:72:18)
    at Object.<anonymous> (/tmp/.mount_ApplicepqAX0/index.js:6:1)
    at Module._compile (internal/modules/cjs/loader.js:1176:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1196:10)
    at Module.load (internal/modules/cjs/loader.js:1040:32)
    at Function.Module._load (internal/modules/cjs/loader.js:929:14)
    at Module.require (internal/modules/cjs/loader.js:1080:19) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [ '/tmp/.mount_ApplicepqAX0/index.js', 'internal/preload' ]
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions