Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[!] Error: Invalid substitution "../node_modules/nsfwjs/dist/index" for placeholder "[name]" in "output.entryFileNames" pattern, can be neither absolute nor relative path. #77

Closed
maifeeulasad opened this issue Jun 17, 2021 · 1 comment

Comments

@maifeeulasad
Copy link

Google search terms

rollup Error: Invalid substitution " for placeholder "[name]"

Describe the bug

When building getting an error saying :

[!] Error: Invalid substitution "../node_modules/nsfwjs/dist/index" for placeholder "[name]" in "output.entryFileNames" pattern, can be neither absolute nor relative path.

How do we reproduce?

Clone and checkout on: https://github.com/maifeeulasad/chrome-sfw/tree/24da719df455e17eddbb148126af5b3234388573

Expected behavior

It used to work. I mean build without error.

Actual behavior

Screenshots

Please complete the following information:

  • Library Version: ^3.5.2
  • Operating System: Ubuntu 20.04 LTS
  • Browser: 91.0.4472.106 (Official Build) (64-bit)
  • Node Version: v14.17.1

Additional context

Found something here: https://github.com/alfredosalzillo/rollup-plugin-multi-input

But this is not even on my dependency.

@jacksteamdev
Copy link
Contributor

jacksteamdev commented Jun 27, 2021

Hey @maifeeulasad! It looks like your dependencies were out of date, so the warning you got was kind of cryptic, but this is a Rollup problem.

After I updated any Rollup related dependencies to the latest version, I got the warnings below. It looks like @tensorflow/tfjs-node uses a library with circular dependencies. Here's a link to the correct issue to get you started.

(!) Circular dependencies
node_modules/sshpk/lib/key.js -> node_modules/sshpk/lib/fingerprint.js -> node_modules/sshpk/lib/key.js
node_modules/sshpk/lib/key.js -> node_modules/sshpk/lib/fingerprint.js -> /media/jack/Storage/Documents/GitHub/chrome-sfw/node_modules/sshpk/lib/key.js?commonjs-proxy -> node_modules/sshpk/lib/key.js
node_modules/sshpk/lib/fingerprint.js -> node_modules/sshpk/lib/private-key.js -> node_modules/sshpk/lib/fingerprint.js
...and 42 more
(!) Plugin node-resolve: preferring built-in module 'punycode' over local alternative at '/media/jack/Storage/Documents/GitHub/chrome-sfw/node_modules/punycode/punycode.es6.js', pass 'preferBuiltins: false' to disable this behavior or 'preferBuiltins: true' to disable this warning
(!) `this` has been rewritten to `undefined`
https://rollupjs.org/guide/en/#error-this-is-undefined
node_modules/@tensorflow/tfjs-layers/dist/layers/convolutional_recurrent.js
 8:  * =============================================================================
 9:  */
10: var __rest = (this && this.__rest) || function (s, e) {
                  ^
11:     var t = {};
12:     for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
...and 1 other occurrence
created dist in 13s

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants