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

incomplete download for the vis.js bower-asset #2

Open
jairusmartin opened this issue Jun 12, 2017 · 1 comment
Open

incomplete download for the vis.js bower-asset #2

jairusmartin opened this issue Jun 12, 2017 · 1 comment

Comments

@jairusmartin
Copy link

Symptom

When attempting to view the workflow in yii2-workflow-manager the following error occurred:

The file or directory to be published does not exist: C:\wamp64\www\migration-basic/vendor\bower/vis/dist

Additional Info

The composer.json has the vis asset included, however, after performing composer update the vendor/bower/vis folder is incomplete. Two major files were not installed:

  • vis/dis
  • vis/lib

The following dependency is in the workflow-view composer.json file":

"require" : {
	"php" : ">=5.4.0",
	"yiisoft/yii2" : "*",
	"raoul2000/yii2-workflow" : ">=0.0.18",
	"bower-asset/vis" : "*"
},

The following fails since the asset can't be loaded and no vis/dist folder exists:

WorkflowViewWidget::widget([
    echo raoul2000\workflow\view\WorkflowViewWidget::widget([
    'workflow' => Yii::$app->workflowSource->getWorkflow($model->id),
    'containerId' => 'workflowView'
]);
echo '<div id="workflowView" style="height: 400px;"></div>';

#Steps To Reproduce

**execute:** composer global require "fxp/composer-asset-plugin:^1.3.1"
**execute:** cd c:/www
**execute:** composer create-project --prefer-dist yiisoft/yii2-app-basic app
**execute:** cd c:/www/app
**execute:** init, then select '0' for development.
**execute:** composer require cornernote/yii2-workflow-manager "*"

modify frontend config to specify your db and credentials.

**execute:** php yii migrate --migrationPath=@cornernote/workflow/manager/migrations

**Run page:** http://app/workflow/

create a workflow with the builder.

**Run page:** http://app/workflow/default/view?id=YourNewWorkflow
@raoul2000
Copy link
Owner

Hi @jairusmartin ,
sorry but I didn't see this issue before (email notification from github seems to no work as I expected )
I will take a look as soon as possible.
ciao

😎

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

2 participants