GithubHelp home page GithubHelp logo

gopherjs-electron's People

Contributors

sntulix avatar

Stargazers

 avatar

Watchers

 avatar  avatar

gopherjs-electron's Issues

App threw an error during load Error: Cannot find module 'app'

When i do "electron .", its failing.

Any ideas

npm -g install electron-prebuilt
/Users/apple/.nvm/versions/node/v6.3.1/bin/electron -> /Users/apple/.nvm/versions/node/v6.3.1/lib/node_modules/electron-prebuilt/cli.js

> [email protected] postinstall /Users/apple/.nvm/versions/node/v6.3.1/lib/node_modules/electron-prebuilt
> node install.js

/Users/apple/.nvm/versions/node/v6.3.1/lib
└── [email protected] 

x-MacBook-Pro:gopherjs-electron apple$ go get -u github.com/gopherjs/gopherjs
x-MacBook-Pro:gopherjs-electron apple$ npm init -y
Wrote to /Users/apple/workspace/go/src/bitbucket.org/gedw99/md/try/electron/gopherjs-electron/package.json:

{
  "name": "gopherjs-electron",
  "version": "1.0.0",
  "description": "```\r npm -g install electron-prebuilt\r npm init -y\r go get -u github.com/gopherjs/gopherjs\r ```",
  "main": "index.js",
  "scripts": {
    "test": "echo \"Error: no test specified\" && exit 1"
  },
  "keywords": [],
  "author": "shizu",
  "license": "ISC",
  "devDependencies": {
    "electron-prebuilt": "^1.3.1"
  },
  "dependencies": {
    "electron-prebuilt": "^1.3.1"
  },
  "repository": {
    "type": "git",
    "url": "git+https://github.com/sntulix/gopherjs-electron.git"
  },
  "bugs": {
    "url": "https://github.com/sntulix/gopherjs-electron/issues"
  },
  "homepage": "https://github.com/sntulix/gopherjs-electron#readme"
}


x-MacBook-Pro:gopherjs-electron apple$ gopherjs build index.go
x-MacBook-Pro:gopherjs-electron apple$ electron .
gopherjs+electronテスト
js: v6.3.0
electron: 1.3.1
App threw an error during load
Error: Cannot find module 'app'
    at Module._resolveFilename (module.js:440:15)
    at Function.Module._resolveFilename (/Users/apple/.nvm/versions/node/v6.3.1/lib/node_modules/electron-prebuilt/dist/Electron.app/Contents/Resources/electron.asar/common/reset-search-paths.js:35:12)
    at Function.Module._load (module.js:388:25)
    at Module.require (module.js:468:17)
    at require (internal/module.js:20:19)
    at main (/Users/apple/workspace/go/src/bitbucket.org/gedw99/md/try/electron/gopherjs-electron/index.js:21313:20)
    at $init (/Users/apple/workspace/go/src/bitbucket.org/gedw99/md/try/electron/gopherjs-electron/index.js:21348:9)
    at $goroutine (/Users/apple/workspace/go/src/bitbucket.org/gedw99/md/try/electron/gopherjs-electron/index.js:1464:19)
    at $schedule (/Users/apple/workspace/go/src/bitbucket.org/gedw99/md/try/electron/gopherjs-electron/index.js:1521:5)
    at $go (/Users/apple/workspace/go/src/bitbucket.org/gedw99/md/try/electron/gopherjs-electron/index.js:1497:3)
    at Object.<anonymous> (/Users/apple/workspace/go/src/bitbucket.org/gedw99/md/try/electron/gopherjs-electron/index.js:21359:1)
    at Object.<anonymous> (/Users/apple/workspace/go/src/bitbucket.org/gedw99/md/try/electron/gopherjs-electron/index.js:21362:4)
    at Module._compile (module.js:541:32)
    at Object.Module._extensions..js (module.js:550:10)
    at Module.load (module.js:458:32)
    at tryModuleLoad (module.js:417:12)
    at Function.Module._load (module.js:409:3)
    at loadApplicationPackage (/Users/apple/.nvm/versions/node/v6.3.1/lib/node_modules/electron-prebuilt/dist/Electron.app/Contents/Resources/default_app.asar/main.js:257:12)
    at Object.<anonymous> (/Users/apple/.nvm/versions/node/v6.3.1/lib/node_modules/electron-prebuilt/dist/Electron.app/Contents/Resources/default_app.asar/main.js:299:5)
    at Module._compile (module.js:541:32)
    at Object.Module._extensions..js (module.js:550:10)
    at Module.load (module.js:458:32)
    at tryModuleLoad (module.js:417:12)
    at Function.Module._load (module.js:409:3)
    at Object.<anonymous> (/Users/apple/.nvm/versions/node/v6.3.1/lib/node_modules/electron-prebuilt/dist/Electron.app/Contents/Resources/electron.asar/browser/init.js:183:8)
    at Module._compile (module.js:541:32)
    at Object.Module._extensions..js (module.js:550:10)
    at Module.load (module.js:458:32)
    at tryModuleLoad (module.js:417:12)
    at Function.Module._load (module.js:409:3)
    at Module.runMain (module.js:575:10)
    at run (bootstrap_node.js:360:7)
    at startup (bootstrap_node.js:152:9)
    at bootstrap_node.js:479:3



my env:

x-MacBook-Pro:gopherjs-electron apple$ go env
GOARCH="amd64"
GOBIN="/Users/apple/workspace/go/bin"
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOOS="darwin"
GOPATH="/Users/apple/workspace/go"
GORACE=""
GOROOT="/usr/local/go"
GOTOOLDIR="/usr/local/go/pkg/tool/darwin_amd64"
GO15VENDOREXPERIMENT="1"
CC="clang"
GOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fno-common"
CXX="clang++"
CGO_ENABLED="1"

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.