0

I'm building a BPMN modeler using the BPMN-Js package using asp.net core mvc, I need to import this module

import BpmnModeler from 'bpmn-js/lib/Modeler';

I set up the package.json file in asp.net and added the node-modules folder in UseStaticFiles

Now I can't figure out how to import BpmnModeler in script, I read about bundling but it's all new to me, a little help is much appreciated.

1
  • Hi @hpPh, where is your js file location? How do you configure the node-modules folder in UseStaticFiles? Is there any error message in browser when you import the module? Commented Jun 22, 2022 at 9:31

1 Answer 1

1

The solution was to create a webpack.config.js file give as input the js file with the imports from node-modules and as output the resulting file which is bundle.js and I simply call this bundle from my html.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.