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

Can't locate path: <.../vendor/mattrothenberg/location/src/../dist/js/location.js> #6

Open
el-schneider opened this issue Aug 27, 2020 · 2 comments

Comments

@el-schneider
Copy link

Bug Description

After running composer require mattrothenberg/location i get Can't locate path: <.../vendor/mattrothenberg/location/src/../dist/js/location.js> which results in a Component location-fieldtype does not exist. in the back-end.

Environment

Statamic 3.0.1 Pro
Laravel 7.26.0
PHP 7.4.9
mattrothenberg/location 1.0

@shawnsquire
Copy link

Confirmed problem exists on Statamic 3.0.10

Problem appears to be that there is no "dist" directory compiled. I fixed the problem by changing to the appropriate vendor directory and running yarn install followed by npm run dev

@OleksiiBrylin
Copy link

To run it, I had to update dependences in package.json (laravel-mix -> ^6.0.49, vue-template-compiler -> ^2.6.14)
And had to change webpack.mix.js (add .vue() to string -> mix.js('resources/js/location.js', 'dist/js').vue(); )

Statamic 3.2.29 Pro

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