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

grunt auto-build ERROR #42

Closed
winson2work opened this Issue Jun 22, 2017 · 10 comments

Comments

Projects
None yet
4 participants
@winson2work
Copy link

winson2work commented Jun 22, 2017

grunt auto-build
Running "copy:diagram_js" (copy) task
Copied 1 file

Running "copy:bpmn_js" (copy) task
Copied 6 files

Running "copy:app" (copy) task
Copied 2 files

Running "less:styles" (less) task

1 stylesheet created.

Running "browserify:watch" (browserify) task

Error: Cannot find module '../../../../_is-buffer@1.1.5@is-buffer/index.js' from 'D:\projects\properties-panel\node_modules_core-util-is@1.0.2@core-util-is\lib'
Warning: Error running grunt-browserify. Use --force to continue.

Aborted due to warnings.

--- npm@3.10.10

@winson2work

This comment has been minimized.

Copy link
Author

winson2work commented Jun 22, 2017

waiting answer

@philippfromme

This comment has been minimized.

Copy link
Contributor

philippfromme commented Jun 22, 2017

Can you please give some more context? Is this the properties-panel example? What are the steps to reproduce this?

@winson2work

This comment has been minimized.

Copy link
Author

winson2work commented Sep 4, 2017

have already been solved 。 ths.

@winson2work winson2work closed this Sep 4, 2017

@VGerris

This comment has been minimized.

Copy link

VGerris commented Jan 23, 2019

hi,

Can you tell how this was resolved? I have the exact same problem when I try to run grunt in the properties example with bpmn-js included locally instead via npm. The build from bpmn.js git repo is not the same as the one via npm. Why is that?

@nikku

This comment has been minimized.

Copy link
Member

nikku commented Jan 24, 2019

The build from bpmn.js git repo is not the same as the one via npm. Why is that?

What exactly do you do?

@VGerris

This comment has been minimized.

Copy link

VGerris commented Jan 24, 2019

hi, thanks for the quick reply. I am basically trying out the properties panel example:
https://github.com/bpmn-io/bpmn-js-examples/tree/master/properties-panel and instead of using bpmn-js by node, I point it to a local setup with npm link. The linked setup is basically just : https://github.com/bpmn-io/bpmn-js/blob/master/docs/project/SETUP.md . so I have a standard dev setup being pointed at which works by itself. however when running npm run all I get:

Running "browserify:app" (browserify) task

Error: Couldn't find preset "env" relative to directory "/home/vincent/develop/bpmn-js" while parsing file: /home/vincent/develop/bpmn-js/lib/Viewer.js
Warning: Error running grunt-browserify. Use --force to continue.

I looked into the package.json file from the prepackaged bpmn-js that npm slurps in, it has lines for script tasks. I think I need to somehow 'browserify' the bpmn-js project? I can't find it documented, any help is greatly appreciated.

@nikku

This comment has been minimized.

Copy link
Member

nikku commented Jan 24, 2019

This is a limitation of npm link. You must install the dependency in your local bpmn-js.

@VGerris

This comment has been minimized.

Copy link

VGerris commented Jan 24, 2019

Can you be more specific? I did an npm install in both directories. I have the same issue using the bundle example.

@nikku

This comment has been minimized.

Copy link
Member

nikku commented Jan 24, 2019

cd bpmn-js
npm install --save-dev babel-preset-env
npm link

cd example
npm link bpmn-js
@VGerris

This comment has been minimized.

Copy link

VGerris commented Jan 24, 2019

Thanks, works like a charm :). Perhaps good to note that somewhere in the dev setup guide? I'm new to this stack and I wasn't able to figure this out easily. Thank you for the help and quick response.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.