2017-04-11 14 views
1

私は、purescriptとpurescript-thermiteを使って簡単な電子アプリを作ることを考えていましたが、私はバワーを介してインストールされた反応ライブラリを見つける必要がないので、ここで私は取得エラーメッセージです:Electron + Purescript + thermite

Uncaught Error: Cannot find module 'react' 
    at Module._resolveFilename (module.js:470:15) 
    at Function.Module._resolveFilename (...snip.../electron-quick-start/node_modules/electron/dist/resources/electron.asar/common/reset-search-paths.js:35:12) 
    at Function.Module._load (module.js:418:25) 
    at Module.require (module.js:498:17) 
    at require (internal/module.js:20:19) 
    at Object.<anonymous> (...snip.../electron-quick-start/output/React/foreign.js:4:13) 
    at Object.<anonymous> (...snip.../electron-quick-start/output/React/foreign.js:166:3) 
    at Module._compile (module.js:571:32) 
    at Object.Module._extensions..js (module.js:580:10) 
    at Module.load (module.js:488:32) 

ザ・ライブラリは/反応/ bower_componentsに位置して反応は...それは検索パス上にあるように思えません。検索パスに追加できる方法はありますか?

ありがとうございます。

答えて

1

あなたはどちらか

  • は(あなたがブラウザを実行している場合、これはBrowserifyのようなものを使用して必要になります)
  • がトップレベルで何とかrequire('react')電話をシムNPMモジュールとして反応インストールする必要があります