Coder Social home page Coder Social logo

Comments (10)

winson2work avatar winson2work commented on June 3, 2024

waiting answer

from bpmn-js-examples.

philippfromme avatar philippfromme commented on June 3, 2024

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

from bpmn-js-examples.

winson2work avatar winson2work commented on June 3, 2024

have already been solved 。 ths.

from bpmn-js-examples.

VGerris avatar VGerris commented on June 3, 2024

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?

from bpmn-js-examples.

nikku avatar nikku commented on June 3, 2024

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

What exactly do you do?

from bpmn-js-examples.

VGerris avatar VGerris commented on June 3, 2024

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.

from bpmn-js-examples.

nikku avatar nikku commented on June 3, 2024

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

from bpmn-js-examples.

VGerris avatar VGerris commented on June 3, 2024

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

from bpmn-js-examples.

nikku avatar nikku commented on June 3, 2024
cd bpmn-js
npm install --save-dev babel-preset-env
npm link

cd example
npm link bpmn-js

from bpmn-js-examples.

VGerris avatar VGerris commented on June 3, 2024

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.

from bpmn-js-examples.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.