Skip to content

Cannot start on mac: env: node\r: No such file or directory #22

@necm1

Description

@necm1

Type

  • Others

Checklist

  1. Updated the package to the latest version
  2. Read all documentation
  3. No related issue
  4. Meaningful issue title

Environment

  • Package Version: v^2.2.8
  • Node Version: v20.5.1
  • NextJS: v14.1.0

Describe the bug
I just followed the tutorial and created a next-css-obfucator.config.ts file in my root directory. After building my application, I just tried to start obfuscate-build and I get following error:

yarn run v1.22.21
$ NODE_ENV=production next-css-obfuscator --config ./next-css-obfuscator.config.ts
env: node\r: No such file or directory
error Command failed with exit code 127.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior
To run maybe?

Screenshots
If applicable, add screenshots to help explain your problem.

Config

import { Options } from 'next-css-obfuscator';

module.exports = {
  enable: true,
  mode: 'random',
  refreshClassConversionJson: process.env.NODE_ENV !== 'production',
  allowExtensions: ['.jsx', '.tsx', '.js', '.ts', '.html', '.rsc'],
} as Options;

Related files

Demos (if any)
N/A

Additional context
I did some research and I guess it's something related to my current OS (macOS).

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions