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

TypeError: (0 , decamelize_1.default) is not a function #379

Closed
fredericosilva opened this issue Sep 27, 2023 · 2 comments
Closed

TypeError: (0 , decamelize_1.default) is not a function #379

fredericosilva opened this issue Sep 27, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@fredericosilva
Copy link

After updating the package I started to get this error:

npx accent sync --dry-run
Fetch config in accent.json... API Client ✓

Syncing sources → en  ✓

    TypeError: (0 , decamelize_1.default) is not a function

accent-cli@0.12 is latest working version

js bundle references a decamelize_1.default that doesn't exist

https://unpkg.com/accent-cli@0.14.1/lib/services/formatters/hook-runner.js

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
// Vendor
const chalk = require("chalk");
const decamelize_1 = require("decamelize");
const capitalizeFirstLetter = (str) => str.charAt(0).toUpperCase() + str.slice(1);
class HookRunnerFomatter {
    log(name, commands) {
        const operation = capitalizeFirstLetter((0, decamelize_1.default)(name, { separator: ' ' }));
        console.log(chalk.yellow('➤ '), chalk.bold(chalk.yellow(`${operation}:`)));
        commands.forEach((command) => {
            console.log('  ', chalk.yellow(command));
        });
        console.log('');
    }
}
exports.default = HookRunnerFomatter;

Let me know if you need more information.

@simonprev
Copy link
Member

Right, the dependency was removed in a refactor but I did not test the hooks feature! Will be fixed in the next release!

@simonprev simonprev added the bug Something isn't working label Oct 17, 2023
@simonprev
Copy link
Member

Fixed in 0.14.2: https://www.npmjs.com/package/accent-cli/v/0.14.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants