-
Notifications
You must be signed in to change notification settings - Fork 30k
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: no template named 'remove_cv_t' in namespace 'std'; did you mean 'remove_cv'? #38367
Comments
I think it's a bug of node-sass. Refs: microsoft/node-pty#441 (comment) and microsoft/node-pty#433 |
I think Node.js v16 isn't supported by There is also an ongoing issue sass/node-sass#3077 in order to support Node.js v16. If you need to use |
Thanks! The latest Node v14 LTS has not supported Apple Silicon natively, while v16 is the best choice for me. Fortunately, I found that sass/node-sass#3091 is trying to upgrade the cpp standard to 14, thereby fixing the macOS building errors. |
I'm downgrading to 15.14 following : https://michael.codes/posts/nodejs_apple_silicon/ EDIT: it worked, but my macbook air m1 got really hot during the node build (>10mins) |
Ok managed to "solve" the issue. TLDR (though may have unexpected consequences)
This arises, because Obviously the best option would be to submit PRs to bump the cpp flags of dependencies. However for dependencies deep in the tree, this can take sometimes months or years bubble up to the top-level dependency. Brute forcing the Not sure what the equivalent Thanks to @stevecondylios for the solution, from microsoft/node-pty#441 (comment) for the solution |
It is work for me |
FYI, I'm experiencing this issue on an Intel based Mac also. Downgrading to node 14 fixed the issue though. |
On m1 mac, using Node.js 16.7, with a project that has
Thank you @litobear |
|
Can confirm |
Also works for WSL2
|
Works |
|
May be i haven't fully understood it, the solution that is proposed in the thread with npm to set CXXFLAGS="--std=c++14" is a workaround, right ? But what about the permanent fix for this ? We can't set this flag while running the npm ci in pipelines. Please suggest a permanent fix for this. |
^^^ comment explains the situation pretty well. I'm happy to pair with you on a fix if you want to send me a DM. |
I saw the comment, actually my use case is i need to upgrade from node 14 to node 16 and by doing so it started showing me this error. Mine is an ionic angular application using npm. From some research it was also saying that the issue is related to node-sass incompatibility with the node-16. |
I have tried Node v16~18 on Manjaro x86_64, and Node v16+ There is an issue and a pull request on support node-sass+Node v18, and it seems it is almost ready for merging to mainline. Hope it can support new version Node.JS better. The successful try:
|
|
NodeJS 16 onwards no longer supports building with c++11 See nodejs/node#38367
NodeJS 16 onwards no longer supports building with c++11 See nodejs/node#38367
NodeJS 16 onwards no longer supports building with c++11 See nodejs/node#38367
And bumping all dependencies to the latest nodejs/node#38367
And bumping all dependencies to the latest nodejs/node#38367
And bumping all dependencies to the latest nodejs/node#38367
And bumping all dependencies to the latest nodejs/node#38367
What steps will reproduce the bug?
When building
node-sass@5.0.0
, the error occurred.How often does it reproduce? Is there a required condition?
ALWAYS, arm64 (Apple Silicon)
What is the expected behavior?
NO error
What do you see instead?
Additional information
Here is the ref link:
node/deps/v8/include/v8-internal.h
Lines 450 to 453 in e46c680
When replacing
remove_cv_t
withremove_cv
, it seems to work well.The text was updated successfully, but these errors were encountered: