Skip to content

"Cannot resolve 'file' or 'directory' ./ios/styles" on a freshly created project #4

@ignasi35

Description

@ignasi35

Following the steps on 'Getting started' guide causes a "Cannot resolve 'file' or 'directory' ./ios/styles" when running. Opening http://localhost:3010 displays a blank screen: index.html is served but main.js triggers a 404.

Steps to reproduce:

npm install -g reapp
reapp new myapp
cd myapp && reapp run 

Output:

[OMITTED]
...
  [659] ./~/reapp-kit/dist/lib/Page.js 2.59 kB {0} [built]
  [660] ./~/reapp-kit/themes/ios.js 48 bytes {0} [built]
  [661] ./~/reapp-kit/~/reapp-ui/themes/ios.js 185 bytes {0} [built] [1 error]   <<<<-------
  [662] ./~/reapp-kit/~/reapp-ui/themes/ios/stylesheets.js 59 bytes {0} [built]
  [663] ./~/reapp-kit/~/reapp-ui/assets/styles/ios/base.css 1.68 kB {0} [built]
...
[OMITTED]
...
  [690] /usr/local/lib/~/reapp/~/reapp-pack/~/react-hot-loader/isReactElementish.js 288 bytes {0} [built]
  [691] ./app/components/home/Sub.jsx 4.99 kB {0} [optional] [built]

WARNING in ./app/app.js
Critical dependencies:
7:22-29 require function is used in a way in which dependencies cannot be statically extracted
 @ ./app/app.js 7:22-29

ERROR in ./~/reapp-kit/~/reapp-ui/themes/ios.js
Module not found: Error: Cannot resolve 'file' or 'directory' ./ios/styles in /Users/ignasi/wip/reappsample/node_modules/reapp-kit/node_modules/reapp-ui/themes
 @ ./~/reapp-kit/~/reapp-ui/themes/ios.js 7:10-33
webpack: bundle is now VALID.

Note: you have a require warning on your routes, this is ok!

Build took 4.292 seconds

There's a Comment on the output regarding the WARNING message which already states that "it is ok to have that warning", but there's no mention of the ERROR.


This is could be caused by wrong version of global libraries in my machine. I'm not sure what's the minimal versions of npm, or other tools that may be affecting. Can provide details if pointed out what to look for. Aplogies for being vague, I'm new at JS ecosystem.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions