凤凰伞上出现错误“找不到模块'import-local'”

时间:2019-01-31 17:45:32

标签: elixir phoenix-framework umbrella

我正在用凤凰制作万能药,直到我将项目带到伞形应用程序之前,一切都运行良好,现在执行mix phx.server时出现此错误

[info] Running FiscalRiskWeb.Endpoint with cowboy 2.6.1 at http://localhost:4000
internal/modules/cjs/loader.js:605
    throw err;
    ^

Error: Cannot find module 'import-local'
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:603:15)
    at Function.Module._load (internal/modules/cjs/loader.js:529:25)
    at Module.require (internal/modules/cjs/loader.js:657:17)
    at require (internal/modules/cjs/helpers.js:22:18)
    at f:\git\hestia\apps\fiscal_risk\assets\node_modules\webpack-cli\bin\webpack.js:11:22
    at Object.<anonymous> (f:\git\hestia\apps\fiscal_risk\assets\node_modules\webpack-cli\bin\webpack.js:515:3)
    at Module._compile (internal/modules/cjs/loader.js:721:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:732:10)
    at Module.load (internal/modules/cjs/loader.js:620:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:560:12)
[error] Task #PID<0.443.0> started from FiscalRiskWeb.Endpoint terminating
** (stop) :watcher_command_error
    (phoenix) lib/phoenix/endpoint/watcher.ex:29: Phoenix.Endpoint.Watcher.watch/3
    (elixir) lib/task/supervised.ex:89: Task.Supervised.do_apply/2
    (stdlib) proc_lib.erl:249: :proc_lib.init_p_do_apply/3
Function: &Phoenix.Endpoint.Watcher.watch/3
    Args: ["node", ["node_modules/webpack/bin/webpack.js", "--mode", "development", "--watch-stdin"], [cd: "f:/git/hestia/apps/fiscal_risk/assets"]

我不知道发生了什么

凤凰“ 1.4.0” 长生不老药“ 1.7.4”

0 个答案:

没有答案