Skip to content

missingDeps.some not a function #4466

Closed
@ashnur

Description

@ashnur

if (missingDeps.some(file => file.indexOf(nodeModulesPath) !== -1)) {

I am getting

TypeError: missingDeps.some is not a function

It's a SortableSet from here https://github.com/webpack/webpack/blob/master/lib/util/SortableSet.js and it doesn't have a .some method, so I am not sure how to fix this.

Activity

Timer

Timer commented on May 15, 2018

@Timer
Contributor

Please upgrade your Node version.

ashnur

ashnur commented on May 15, 2018

@ashnur
Author
❯ node --version
v10.1.0

can you please tell me which version I should install?

❯ node
> x = new Set()
Set {}
> x.some
undefined
ashnur

ashnur commented on May 15, 2018

@ashnur
Author

https://www.ecma-international.org/ecma-262/8.0/index.html#sec-properties-of-the-set-prototype-object

Set doesn't have some, SortableSet doesn't have some. I don't understand, did some node version have Set with a .some method, ever?

ashnur

ashnur commented on May 15, 2018

@ashnur
Author

Thanks @Timer, you really "helped" me. I wish for you to be helped by everyone the same way you handled this issue.

reopened this on May 15, 2018
Timer

Timer commented on May 15, 2018

@Timer
Contributor

If you followed the issue template instead of ignoring it we may have been able to provide you with better assistance the first time around.
I'm happy to help if you give us the required information to diagnose your problem.

ashnur

ashnur commented on May 16, 2018

@ashnur
Author

Actually, your template says that if I don't know if it's a bug, I don't have to use it.
Second, I think you didn't even read what I wrote first, just closed it being so sure that I am using some 6 year old node version... but it all doesn't matter, because now I took the time which I don't think I should've had, and found this #4366

Yesterday I didn't search between the closed issues because I didn't assume that you would close unsolved issues. Now I know better, having experienced otherwise how things go around here.

I have installed https://www.npmjs.com/package/react-dev-utils @ 5.0.1 which is the latest.

May I ask when the fix will be published on npm too?

Timer

Timer commented on May 16, 2018

@Timer
Contributor

Unfortunately, we do not have enough information to help you.
If you're installing packages like react-dev-utils it sounds like you're ejected, otherwise I'm not sure what you're doing.

I'm sorry if I gave you a terse first response, but most of these issues that come through like this are related to an old Node version.

If you can replicate this with a non-ejected setup, please provide all of the information the issue template states and reproduction steps. I'll close this until more information is provided, as this issue doesn't seem wide-spread.

ashnur

ashnur commented on May 16, 2018

@ashnur
Author

I don't have to replicate, you have it fixed already, I just asked when you gonna publish? Until then I am using a local copy of the PR with the fixes. Which is not great, but what can we do? Would be nicer if issues were not closed until the fix is published.

Timer

Timer commented on May 16, 2018

@Timer
Contributor

Publishing that version is a few months out.

vireshshah

vireshshah commented on May 22, 2018

@vireshshah

@Timer I'm getting same issue. I'm using react-dev-utils package (5.0.1) and it's ejected version. I tried upgrade to react-dev-utils@next as well but no luck. Can you please help?

TypeError: missingDeps.some is not a function at compiler.plugin (/hello/node_modules/react-dev-utils/WatchMissingNodeModulesPlugin.js:25:23) at _err0 (eval at create (/hello/node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:12:1) at Promise.resolve.then.then.then.then.then.then.then.then.catch.then.then.then (/hello/node_modules/html-webpack-plugin/index.js:224:11) at <anonymous> error An unexpected error occurred: "Command failed.

ashnur

ashnur commented on May 22, 2018

@ashnur
Author

@vireshshah we are going to have to wait "a few months". :) Until then I suggest to you to use a local copy of the repo where you can apply the patches you need. (or use an earlier version of webpack).

11 remaining items

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @ashnur@Timer@nuc@vireshshah@SimpleCookie

        Issue actions

          missingDeps.some not a function · Issue #4466 · facebook/create-react-app