dennisreimann / uiengine

Workbench for UI-driven development
https://uiengine.uix.space/
MIT License
366 stars 25 forks source link

Could not find module `babel-runtime` in @uiengine/theme #14

Closed naltatis closed 6 years ago

naltatis commented 6 years ago

The getting started example throws an error when trying to start uiengine. Looks like babel-runtime dependency is missing.

$ uiengine build --watch --serve
🚧  Building …
🚨  Build failed!

Error: Could not load "@uiengine/theme" theme:

Error: Cannot find module 'babel-runtime/core-js/object/assign'
    at Function.Module._resolveFilename (module.js:536:15)
    at Function.Module._load (module.js:466:25)
    at Module.require (module.js:579:17)
    at require (internal/module.js:11:18)

We've been able to work around this by manually adding it to the projects dependencies. I'm not sure about the right place for this dependency.

Workaround:

npm install --save-dev babel-runtime