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 with an error #28

Open
stretch07 opened this issue Feb 19, 2022 · 5 comments
Open

Help with an error #28

stretch07 opened this issue Feb 19, 2022 · 5 comments

Comments

@stretch07
Copy link

I keep receiving this error halfway through the build:
image

Here's my yml setup:

name: Auto Minifier CSS

on: push

jobs:

  build:
    runs-on: ubuntu-latest

    steps:
      # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
      - uses: actions/checkout@v2
      - name: Auto Minify
        uses: nizarmah/[email protected]
        with:
          overwrite: false
          directory: .
          maxdepth: 20
      - name: Auto commit minified files
        uses: stefanzweifel/git-auto-commit-action@v4
        with:
          commit_message: "Github Action: Auto Minified JS and CSS files"
          branch: ${{ github.ref }}

Could somebody diagnose?

@nizarmah
Copy link
Owner

nizarmah commented Mar 7, 2024

Hey @stretch07. Are you still running into this issue?

If so, can you create a small publicly available "demo"?
It will help me understand what's happening.

@AutisticShark
Copy link

babel/minify#974 Maybe related to this? I also started to get this error in my CI after moving some script content inside the HTML template to a dedicated JS file, could it be that bable doesn't like that?

@AutisticShark
Copy link

Fixed by switching to uglify-js as js engine.

@nizarmah
Copy link
Owner

nizarmah commented Jul 5, 2024

Nice catch! You're awesome, @AutisticShark. Thank you 🙌🏼

It seems like there's a work-around. I'll try to include that over the weekend.

@stretch07
Copy link
Author

I'm glad you guys found a fix. Feel free to close this issue whenever you need

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

3 participants