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

Error trying to install #28

Closed
itmgmt-codeCorp opened this issue Jan 19, 2021 · 3 comments
Closed

Error trying to install #28

itmgmt-codeCorp opened this issue Jan 19, 2021 · 3 comments

Comments

@itmgmt-codeCorp
Copy link

Install error. issue with blade directive.

InvalidArgumentException

  The directive name [] is not valid. Directive names must only contain alphanumeric characters and underscores.

  at vendor/laravel/framework/src/Illuminate/View/Compilers/BladeCompiler.php:684
    680▕      */
    681public function directive($name, callable $handler)
    682▕     {
    683if (! preg_match('/^\w+(?:::\w+)?$/x', $name)) {
  ➜ 684throw new InvalidArgumentException("The directive name [{$name}] is not valid. Directive names must only contain alphanumeric characters and underscores.");
    685▕         }
    686687$this->customDirectives[$name] = $handler;
    688▕     }

      +19 vendor frames
  20  [internal]:0
      Illuminate\Foundation\Application::Illuminate\Foundation\{closure}()

      +5 vendor frames
  26  artisan:37
      Illuminate\Foundation\Console\Kernel::handle()
@ap-coder
Copy link

I get same error.

@ap-coder
Copy link

I saw you comment on use the updated config. problem is the package is failing install before it gets to the point where we are allowed to add the config.

@hivokas
Copy link
Member

hivokas commented Jan 29, 2021

@itmgmt-codeCorp @ap-coder I've published the release with the fix (https://github.com/coderello/laravel-shared-data/releases/tag/3.1.1). Please let me know if this fixed the problem.

@hivokas hivokas closed this as completed Feb 4, 2021
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