2017-01-08 8 views
0

私はpostgresアドオンを反応を使用しているherokuアプリに組み込もうとしています。私はローカルでアプリケーションを実行しようとすると、私は次のエラーを取得する:エラーが発生しましたモジュールが見つかりません:postgresのherokuアプリで 'dgram'

> heroku local web 
[OKAY] Loaded ENV .env File as KEY=VALUE Format 
[WARN] ENOENT: no such file or directory, open 'Procfile' 
[OKAY] package.json file found - trying 'npm start' 
9:21:18 PM web.1 | > [email protected] start /Users/oliverpike/dev/heroku/ofp-react 
9:21:18 PM web.1 | > react-scripts start 
9:21:19 PM web.1 | Starting the development server... 
9:21:25 PM web.1 | Failed to compile. 
9:21:25 PM web.1 | Error in ./~/dns/~/native-dns/lib/server.js 
9:21:25 PM web.1 | Module not found: 'dgram' in /Users/oliverpike/dev/heroku/ofp-react/node_modules/dns/node_modules/native-dns/lib 

は、どうやらこのSOスレッドに応じてノードに組み込まれていDGRAM:

Does node.js have built-in support for UDP(datagams)?

ここで私はDGRAM NPMの出力です

> npm i dgram 
[email protected] node_modules/dgram 

答えて

0

クライアントアプリケーションでSequelizeとpg Nodeモジュールを使用しようとしていますが、このモジュールはNode Envirmentで実行されるだけで、クライアントアプリケーションでは使用しないでください。

関連する問題