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

Yarn support? (support silent npm install of Semantic-UI?) #239

Open
jfarlow opened this issue Sep 29, 2018 · 2 comments
Open

Yarn support? (support silent npm install of Semantic-UI?) #239

jfarlow opened this issue Sep 29, 2018 · 2 comments

Comments

@jfarlow
Copy link

jfarlow commented Sep 29, 2018

I'm using ember 3.4.1, and I'm trying to use Yarn v1.10.1

The "semantic-ui@2.4.0 install script" is responsive and asks questions during installation, and this seems to be incompatible with how Yarn works.

during > yarn install
the semantic ui script tries to run, but seemingly fails:

Starting 'run setup'...
? Set-up Semantic UI (Use arrow keys)
❯ Automatic (Use default locations and all components) 
  Express (Set components and output folder) 
  Custom (Customize all src/dist values) 

and then during the standard
>ember serve

an error is thrown:

Build Error (Funnel)
Attempting to watch missing directory: node_modules/semantic-ui-css
{{{and then ember hangs - the port is open, but nothing is there}}}

in the error log:

Attempting to watch missing directory: node_modules/semantic-ui-css

  • errorType: Build Error
  • location:
    • column: [undefined]
    • file: [undefined]
    • line: [undefined]
    • treeDir: [undefined]
  • message: Build Canceled: Broccoli Builder ran into an error with Funnel plugin. 💥
    Attempting to watch missing directory: node_modules/semantic-ui-css
  • name: Error
  • nodeAnnotation: Funnel
  • nodeName: Funnel
  • originalErrorMessage: Attempting to watch missing directory: node_modules/semantic-ui-css
  • stack: Error: Attempting to watch missing directory: node_modules/semantic-ui-css

Is it possible to make Semantic-UI compatible with the Yarn build process?

@jfarlow
Copy link
Author

jfarlow commented Sep 29, 2018

Seems to be a combination of bugs related to,
Interactive install: Semantic-Org/Semantic-UI#4801
Loss of assets: Semantic-Org/Semantic-UI#5821

@jfarlow
Copy link
Author

jfarlow commented Sep 29, 2018

Alright, I found a workaround for the error: ENOENT: no such file or directory, scandir...

The semantic.js file settings in my project root is not respected at build, and so the asset pathway and import defaults are ignored.

If I change the index.js file in /node_modules/semantic-ui-ember/ and set import:{images:false, fonts:false} a bad path is no longer sucked into the "funnel" and the build builds properly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant