-
-
Notifications
You must be signed in to change notification settings - Fork 5
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Type
- Others
Checklist
- Updated the package to the latest version
- Read all documentation
- No related issue
- 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:
- Go to '...'
- Click on '....'
- Scroll down to '....'
- 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
Labels
bugSomething isn't workingSomething isn't working