Giter Site home page Giter Site logo

Issue with "make prod" about ixbrl-viewer HOT 11 CLOSED

arelle avatar arelle commented on July 18, 2024
Issue with "make prod"

from ixbrl-viewer.

Comments (11)

paulwarren-wk avatar paulwarren-wk commented on July 18, 2024

bc3aa0a should hopefully fix the issue with the tests.

I'm not sure what the issue is with make prod. Does "make dev" work any better?

from ixbrl-viewer.

xbrles avatar xbrles commented on July 18, 2024

Hi Paul,

Thanks for your help! Let me explain you step by step what I'm doing.

STEP 1. After installing npm, I've run "npm install" with this result:

image

Please, let me know if I need to fix something related to the warnings.

STEP 2. After your last commit, I've successfully run the javascript unit tests with "npm run test"

image

STEP 3. Both commands: "make prod" and "make dev" have the same result, the blinking underscore symbol as the process never finishes and no error messages related.

image

Any ideas of how can I solve this issue?

Thanks in advance for your help!


Javier Mora
XBRL Spain
[email protected]

from ixbrl-viewer.

paulwarren-wk avatar paulwarren-wk commented on July 18, 2024

Can you try doing:

cd iXBRLViewerPlugin\viewer
npx webpack --config webpack.dev.js --optimize-minimize

from ixbrl-viewer.

xbrles avatar xbrles commented on July 18, 2024

Hi Paul,

This is the result of running these commands.

image

It looks like the process finishes successfully and the "ixbrlviewer.dev.js" file has been created in the "iXBRLViewerPlugin/viewer/dist" directory.

image

Is this the correct file? The name of the JavaScript file is slightly different from the one in the instructions: "ixbrlviewer.js" vs "ixbrlviewer.dev.js".

Thanks for your help!


Javier Mora
XBRL Spain
[email protected]

from ixbrl-viewer.

paulwarren-wk avatar paulwarren-wk commented on July 18, 2024

Glad it's working. The two files are interchangeable - the .dev version just contains extra information for debugging. If you want the normal version, just use:

npx webpack --config webpack.prod.js --optimize-minimize

from ixbrl-viewer.

paulwarren-wk avatar paulwarren-wk commented on July 18, 2024

There's a fix for this issue here:

https://github.com/paulwarren-wk/ixbrl-viewer/tree/issue-12-build-fixes

If you've not already got the Arelle plugin working, note the updated instructions in the above.

from ixbrl-viewer.

xbrles avatar xbrles commented on July 18, 2024

Thank you, Paul.

The command:

npx webpack --config webpack.prod.js --optimize-minimize

seems to work OK, even I get some warnings

image

Now I've both JavaScript files ("ixbrlviewer.js" and "ixbrlviewer.dev.js") on the "iXBRLViewerPlugin/viewer/dist" directory.

image

from ixbrl-viewer.

xbrles avatar xbrles commented on July 18, 2024

Paul,

I confirm that I have been able to install successfully the iXBRL viewer plugin on Arelle:

image

Thanks for your support!


Javier Mora
XBRL Spain
[email protected]

from ixbrl-viewer.

xbrles avatar xbrles commented on July 18, 2024

Paul,

Everything is working but the process of loading the iXBRL instance document, after saving it with the Arelle iXBRL Viewer plugin, and trying to open it with Google Chrome (version 73.0.3683.103), it gets stuck on this screen:

image

Please, find attached the original iXBRL (Alexandria-2018-Statements.html) and the one saved by the Arelle iXBRL Viewer plugin (Alexandria-2018-Statements-ixbrlviewer.html).

Alexandria-2018-Statements.zip

Thanks for your support!


Javier Mora
XBRL Spain
[email protected]

from ixbrl-viewer.

paulwarren-wk avatar paulwarren-wk commented on July 18, 2024

I think your -ixbrlviewer.html file was generated by an older version of the Arelle plugin than your ixbrlviewer.js file is expecting. Could you try regenerating the file, and seeing if that fixes it? If not, please can you report what's on the Javascript console, and attach a copy of ixbrlviewer.js?

from ixbrl-viewer.

xbrles avatar xbrles commented on July 18, 2024

Thank you, Paul.

Indeed you're right, I was using the v0.1 (2019-03-22) of the Arelle iXBRL Viewer plugin.

image

Now I'm using the v0.1 (2019-04-20) of the Arelle iXBRL Viewer plugin.

image

and everything works perfectly!

Thank you so much for your support!


Javier Mora
XBRL Spain
[email protected]

from ixbrl-viewer.

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.