parcel-plugin-custom-dist-structure: Maximum call stack size exceeded

Hi! Just giving the plugin a spin against a project I’m working on and I get the following error when I run with the plugin installed:

Server running at http://localhost:1234
√  Built in 20.18s.
×  Maximum call stack size exceeded
    at Map.entries (<anonymous>)
    at Function.from (<anonymous>)
    at DependencyGraph.buildDependencyAssets (C:\MyProject\Publish\node_modules\parcel-plugin-custom-dist-structure\lib\DependencyGraph.js:51:36)
    at C:\MyProject\Publish\node_modules\parcel-plugin-custom-dist-structure\lib\DependencyGraph.js:62:14
    at Array.forEach (<anonymous>)
    at DependencyGraph.buildDependencyAssets (C:\MyProject\Publish\node_modules\parcel-plugin-custom-dist-structure\lib\DependencyGraph.js:53:22)
    at C:\MyProject\Publish\node_modules\parcel-plugin-custom-dist-structure\lib\DependencyGraph.js:62:14
    at Array.forEach (<anonymous>)
    at DependencyGraph.buildDependencyAssets (C:\MyProject\Publish\node_modules\parcel-plugin-custom-dist-structure\lib\DependencyGraph.js:53:22)
    at C:\MyProject\Publish\node_modules\parcel-plugin-custom-dist-structure\lib\DependencyGraph.js:62:14

The project has around 800 html & image files.

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 15 (9 by maintainers)

Commits related to this issue

Most upvoted comments

v1.1.5 has been released! Thank you for your help. Now, the plugin is ready for enterprise projects 😎

That’s awesome to hear. I’ll leave the issue and PR open for 2 more days to be sure that this does work flawlessly on bigger projects and after that, I’ll merge the PR and publish a new version to NPM.

W00t! That seems to have worked! Thanks very much. I’ll enable it while I’m continuing to develop and see if it’s stable… or if I can find any edge cases.

So far so good. At least I’ve eliminated one option. I’ve updated the branch, could you please follow the steps again and see if this fixed the issue?

Thank you.

@HowardvanRooijen I might not even need it. I think I’ve fixed it, but I’ll need your help to verify this 😃

I would like you to test it, the steps are:

  1. Clone the project: git clone https://github.com/VladimirMikulic/parcel-plugin-custom-dist-structure.git
  2. Check out the test branch: git checkout fix/build-dependency-assets-stack-overflow
  3. Make it available globally on your system: npm link
  4. After running npm link, you’ll get the absolute path to the package -> copy it
  5. Enter your project and run npm i -D <absolute_path> to install the plugin (before this, make sure to delete the version from NPM)
  6. Report the results here

Thank you.