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

Can "nodejieba" be as "devDependency" or "peerDependency" in lunr-languages? #73

Closed
le0pard opened this issue Jun 20, 2021 · 4 comments
Closed

Comments

@le0pard
Copy link

le0pard commented Jun 20, 2021

Main reason for this - due to this dependency package lunr-languages is not working on node.js 16:

gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
  CXX(target) Release/obj.target/nodejieba/lib/index.o
In file included from ../lib/index.cpp:1:
In file included from ../lib/nodejieba.h:4:
In file included from ../lib/utils.h:4:
In file included from /Users/leo/Library/Caches/node-gyp/16.3.0/include/node/node.h:63:
In file included from /Users/leo/Library/Caches/node-gyp/16.3.0/include/node/v8.h:30:
/Users/leo/Library/Caches/node-gyp/16.3.0/include/node/v8-internal.h:452:38: error: no template named 'remove_cv_t' in namespace 'std'; did you mean 'remove_cv'?
            !std::is_same<Data, std::remove_cv_t<T>>::value>::Perform(data);
                                ~~~~~^~~~~~~~~~~
                                     remove_cv
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/type_traits:776:50: note: 'remove_cv' declared here
template <class _Tp> struct _LIBCPP_TEMPLATE_VIS remove_cv
                                                 ^
1 error generated.
make: *** [Release/obj.target/nodejieba/lib/index.o] Error 1
@MihaiValentin
Copy link
Owner

Hi Alexey,

Can you try changing the package version to ^2.5.0 instead of ~2.3.0? Does it build with 2.5.0?

@le0pard
Copy link
Author

le0pard commented Jun 20, 2021

nodejieba 2.5.0 compiles on node.js 16, but I need remove lunr-languages to resolve issue with nodejieba 2.3.0

adding nodejieba 2.5.0 add additional version in dependency tree. Which is not resolve dependency for lunr-languages.

Screenshot 2021-06-20 at 23 36 43
Screenshot 2021-06-20 at 23 36 06

@MihaiValentin
Copy link
Owner

I updated package.json to 2.5 version. Please let me know if a fresh npm install works well for you now!

Thanks!

@le0pard
Copy link
Author

le0pard commented Jun 21, 2021

Thanks @MihaiValentin Issue resolved 👍

@le0pard le0pard closed this as completed Jun 21, 2021
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