Now I get this error
The
urlsupplied for the path (packages/*) repository does not exist
Now I get this error
The
urlsupplied for the path (packages/*) repository does not exist
clarkwinkelmann Is Flarum inside C:\wamp64\www\bek ?
Yes
jedi Theurlsupplied for the path (packages/*) repository does not exist
This problem is was solved with "repositories"
is here: https://discuss.flarum.org/d/1608-extension-development-using-composer-repositories-path
But then here we back again same error
jedi Are you using a relative path now?
askvortsov I using now this code:
"repositories": [
{
"type": "path",
"url": "packages/*"
}
]
What's the output of composer why-not superman/flarum-ext-batman
..Says, "I not find"
but how? I see name in the composer.json
file
[InvalidArgumentException]
Could not find package "superman/flarum-ext-batman" in your project
jedi Are you on discord? It might be faster to do a quick call with screenshare and get this figured out.
My username is askvortsov#3485
{
"name": "superman/flarum-ext-batman",
"description": "Being Hero",
"keywords": [
"flarum"
askvortsov I'm Sorry, I don't use Discord. But thank a lot being helpfull me.
I setup it's Flarum Extension-Generator again.
Repositories is:
"repositories": [
{
"type": "path",
"url": "packages/batman"
}
]
askvortsov What's the output of composer why-not superman/flarum-ext-batman
And now says, "There is no installed package depending on "superman/flarum-ext-batman"
Are you sure guys, problem is repositories
realy? Because I tried all way but error is the same.
I read this article again, again and again: https://discuss.flarum.org/d/1608-extension-development-using-composer-repositories-path
"repositories": [
{
"type": "path",
"url": "C:/wamp64/www/bek/workbench/*"
}
]
composer.json file is:
{
"name": "superman/flarum-ext-batman",
"description": "Being hero",
"keywords": [
"flarum"
],
"type": "flarum-extension",
"license": "MIT",
"require": {
"flarum/core": "^0.1.0-beta.8"
},
"authors": [
{
"name": "Luke Skywalker",
"email": "skywalker_mark@gmail.com",
"role": "Developer"
}
],
"autoload": {
"psr-4": {
"Superman\\Batman\\": "src/"
}
},
"extra": {
"flarum-extension": {
"title": "Hero Time",
"icon": {
"name": "fas fa-clock",
"backgroundColor": "#000",
"color": "#FFFFF"
}
},
"flagrow": {
"discuss": ""
}
},
"repositories": [
{
"type": "path",
"url": "C:/wamp64/www/bek/workbench/*"
}
]
}
But now I get this error when I start extension
"File not found at path: C:\wamp64\www\bek\workbench\batman/js/dist/forum.js"
I don't have a dist folder, how can I get (create) ?
Myworkbench\batman\js
folder is:
src
admin.js
forum.js
package.json
webpack.config.js
In workbench\batman\extend.php change the / to \ in the argument of ->js()
DIRECTORY_SEPARATOR would be better but is a constant and cannot be added inside a string like that.
Now batman\extend.php
look like this:
return [
(new Extend\Frontend('forum'))
->js(__DIR__.'\js\forum.js')
->css(__DIR__.'/resources/less/forum.less'),
(new Extend\Frontend('admin'))
->js(__DIR__.'\js\admin.js')
->css(__DIR__.'/resources/less/admin.less'),
new Extend\Locales(__DIR__ . '/resources/locale')
];
But now, site is not opening when I start extension