Coder Social home page Coder Social logo

Comments (4)

saketoz98 avatar saketoz98 commented on June 7, 2024 2

I am getting the same error while submitting the document. I have followed the "Frontend Only" approach for installation.

from opensign.

rishabjasrotia avatar rishabjasrotia commented on June 7, 2024 1

Hello @maoo
I know the reason for this issue is due to missing build files.

You need to build the package in microfrontends.

Command to do this:

cd microfrontends/SignDocuments && npm install && npm run build

You should get the public files ready in /microfrontends/SignDocuments/public

Note: In case public files are created and move command fails then you should manually copy files from /microfrontends/SignDocuments/public to /apps/OpenSign/public/mfbuild

Note: You also need to delete the old docker images and container so it rebuilds with mfbuild files

cc @andrew-opensignlabs

Assign this issue to me I will try to make this included in docker build scripts.

from opensign.

maoo avatar maoo commented on June 7, 2024 1

Thank you @rishabjasrotia !

I got it working following your instructions; just a couple of notes:

  • the apps/OpenSign/public/mfbuild folder already exists, so the mv/cp commands would fail
  • the npm run build command in microfrontends/SignDocuments already moves the mfbuild folder across

For reference, this is the list of actions that leads to a successful (docker) local run:

rm -rf apps/OpenSign/public/mfbuild
cd microfrontends/SignDocuments && npm install && npm run build
docker compose up -d

I'd be happy to work on the fix, though I'm not sure what's the best practice for packaging microfrontends into Docker images.

As you may know, Dockerfiles have issues accessing files that are not located under its folder; moving the microfrontends folder under apps/OpenSign (or moving apps/OpenSign/Dockerfile in the root folder, maybe calling it Dockerfile.app) would solve the issue, but it may not be the best approach.

from opensign.

rishabjasrotia avatar rishabjasrotia commented on June 7, 2024

We can close this issue PR merged
#162

from opensign.

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.