0
我正在嘗試將postgres插件合併到同樣使用react的heroku應用程序中。根據該SO線程獲取錯誤模塊未找到:'dgram'in postgres heroku app
> 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
顯然DGRAM內置節點:當我嘗試在本地運行的應用程序,我碰到下面的錯誤 Does node.js have built-in support for UDP(datagams)?
這裏的NPM的輸出I DGRAM:
> npm i dgram
[email protected] node_modules/dgram