Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Help: frontend-app - Module not found after adding material #48

Open
brindy opened this issue Sep 15, 2018 · 1 comment
Open

Help: frontend-app - Module not found after adding material #48

brindy opened this issue Sep 15, 2018 · 1 comment
Assignees
Labels
bug Confirmed Bug confirmed and solution being looked in to enhancement

Comments

@brindy
Copy link

brindy commented Sep 15, 2018

Expected Behavior

App should compile after adding material.

Actual Behavior

App doesn't compile and complains that it can't find the module:

Module not found: Error: Can't resolve '/home/envuser/apphome/node_modules/@angular/material/prebuilt-themes/indigo-pink.css' in '/home/envuser/apphome'

Steps to Reproduce the Problem

  1. takeoff init material
  2. cd material/projects/default/env/frontend-app
  3. ng add @angular/material --project=frontend-app
  4. takeoff start

Workaround is to copy the css file in to the theme folder and update angular.json.

Specifications

  • Version: 2.0.8
  • Platform: macOS 10.13.6 (High Sierra)
  • Subsystem:
@tanepiper tanepiper self-assigned this Sep 17, 2018
@tanepiper
Copy link
Collaborator

@brindy Yes, I think I know what the issue is here.

Inside the docker image, the node_modules folder lives under it's own internal docker volume, as otherwise the linux image would try load Mac/Windows compiled dependencies from the local volume.

I'm looking at having more commands that allow you to run commands in attached docker images and have a way to duplicate local and internal dependencies.

In the meantime have a look at https://docs.docker.com/engine/reference/commandline/exec

Here you should be able to run npm inside the /home/envuser/apphome.

I'll hopefully have a solution for the next major release.

@tanepiper tanepiper added bug enhancement Confirmed Bug confirmed and solution being looked in to labels Sep 17, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Confirmed Bug confirmed and solution being looked in to enhancement
Projects
None yet
Development

No branches or pull requests

2 participants