-
-
Notifications
You must be signed in to change notification settings - Fork 25
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't install on node 16 #262
Comments
Thanks for reporting issue! ❯ node -v
v16.1.0
~/develop/blade-formatter-node16
❯ yarn remove blade-formatter
yarn remove v1.22.10
warning package.json: No license field
[1/2] Removing module blade-formatter...
[2/2] Regenerating lockfile and installing missing dependencies...
warning No license field
success Uninstalled packages.
Done in 0.45s.
~/develop/blade-formatter-node16
❯ yarn add blade-formatter
yarn add v1.22.10
warning package.json: No license field
warning No license field
[1/4] Resolving packages...
[2/4] Fetching packages...
[3/4] Linking dependencies...
[4/4] Building fresh packages...
success Saved lockfile.
warning No license field
success Saved 69 new dependencies.
info Direct dependencies
└─ blade-formatter@1.11.5
info All dependencies
├─ @babel/runtime-corejs3@7.14.0
├─ @prettier/plugin-php@0.16.1
├─ abbrev@1.1.1
├─ aigle-core@1.0.0
├─ aigle@1.14.1
├─ ansi-regex@5.0.0
├─ ansi-styles@4.3.0
├─ balanced-match@1.0.2
├─ blade-formatter@1.11.5
├─ brace-expansion@1.1.11
├─ buffer-from@1.1.1
├─ chalk@4.1.1
├─ cliui@7.0.4
├─ color-convert@2.0.1
├─ color-name@1.1.4
├─ commander@2.20.3
├─ concat-map@0.0.1
├─ concat-stream@2.0.0
├─ config-chain@1.1.12
├─ core-js-pure@3.12.0
├─ detect-indent@6.0.0
├─ editorconfig@0.15.3
├─ emoji-regex@8.0.0
├─ escalade@3.1.1
├─ esm@3.2.25
├─ fs.realpath@1.0.0
├─ get-caller-file@2.0.5
├─ glob@7.1.7
├─ has-flag@4.0.0
├─ ignore@5.1.8
├─ inflight@1.0.6
├─ ini@1.3.8
├─ is-fullwidth-code-point@3.0.0
├─ js-beautify@1.13.13
├─ linguist-languages@7.14.0
├─ lodash@4.17.21
├─ lru-cache@4.1.5
├─ map-age-cleaner@0.1.3
├─ mem@8.1.1
├─ mimic-fn@3.1.0
├─ minimatch@3.0.4
├─ mkdirp@1.0.4
├─ nan@2.14.2
├─ nopt@5.0.0
├─ oniguruma@7.2.1
├─ p-defer@1.0.0
├─ path-is-absolute@1.0.1
├─ prettier@2.2.1
├─ proto-list@1.2.4
├─ pseudomap@1.0.2
├─ readable-stream@3.6.0
├─ regenerator-runtime@0.13.7
├─ require-directory@2.1.1
├─ safe-buffer@5.2.1
├─ semver@5.7.1
├─ sigmund@1.0.1
├─ string_decoder@1.3.0
├─ string-width@4.2.2
├─ supports-color@7.2.0
├─ typedarray@0.0.6
├─ util-deprecate@1.0.2
├─ vscode-oniguruma@1.3.1
├─ vscode-textmate@4.4.0
├─ wrap-ansi@7.0.0
├─ xregexp@5.0.2
├─ y18n@5.0.8
├─ yallist@2.1.2
├─ yargs-parser@20.2.7
└─ yargs@16.2.0
Done in 12.49s. That sof link seems describing e.g. $ mkdir example
$ cd example
$ echo {} > pacakge.json
$ npm install blade-formatter |
In the case of blade-formatter it was |
Same with node 16.1.0, macOS 11.2.3. Seems like oniguruma is not yet compatible with node 16, no idea why it works for you though.
|
This is my environment. ❯ neofetch
eeeeeeeeeeeeeeeee shuhei@shuhei-Inspiron-5675
eeeeeeeeeeeeeeeeeeeeeee ---------------------------
eeeee eeeeeeeeeeee eeeee OS: elementary OS 5.1.7 Hera x86_64
eeee eeeee eee eeee Host: Inspiron 5675 1.3.6
eeee eeee eee eeee Kernel: 5.4.0-59-generic
eee eee eee eee Uptime: 3 days, 2 hours, 14 mins
eee eee eee eee Packages: 3124
ee eee eeee eeee Shell: zsh 5.4.2
ee eee eeeee eeeeee Resolution: 3840x2160
ee eee eeeee eeeee ee DE: Pantheon
eee eeee eeeeee eeeee eee WM: Mutter(Gala)
eee eeeeeeeeee eeeeee eee Terminal: tmux
eeeeeeeeeeeeeeeeeeeeeeee eeeee CPU: AMD Ryzen 7 1700X (16) @ 3.400GHz
eeeeeeee eeeeeeeeeeee eeee GPU: NVIDIA GeForce GTX 1060 6GB
eeeee eeeee Memory: 29550MiB / 64280MiB
eeeeeee eeeeeee
eeeeeeeeeeeeeeeee
Probably linux environment causes different result. And it seems similar issue also occured on native module compile on macOS with node 16 From above comments, add yarn install -std=c++17 |
@shufo Upgrade An same issue was also reported in @shurizzle taught me how to do this, (Thanks) [NG] ErrorError
[OK] Upgrade vscode-textmate v5.4.0cd /tmp
git clone git@github.com:shufo/blade-formatter.git
cd blade-formatter
rm yarn.lock
yarn add vscode-textmate@^5.4.0
# ...snip
✨ Done in 37.52s. MiscThis will avoid the installation error, but I haven't checked the operation of blade-fomatter yet. |
I was able to install it by following the steps in this comment, but unfortunately, node v16 gives me an error when formatting. :( $ node --version
v16.1.0
$ ./bin/blade-formatter --write __tests__/fixtures/blade_brace_without_space.blade.php
E
Fixed: F
Errors: E
Not Changed: .
Errors:
{
path: '__tests__/fixtures/blade_brace_without_space.blade.php',
message: 'Must invoke loadWASM first.',
error: Error: Must invoke loadWASM first.
at new u (/private/tmp/blade-formatter/node_modules/vscode-oniguruma/release/main.js:1:2639)
at Object.createOnigString (/private/tmp/blade-formatter/src/vsctm.js:51:36)
at e.createOnigString (/private/tmp/blade-formatter/node_modules/vscode-textmate/release/main.js:1:5786)
at e._tokenize (/private/tmp/blade-formatter/node_modules/vscode-textmate/release/main.js:1:7837)
at e.tokenizeLine (/private/tmp/blade-formatter/node_modules/vscode-textmate/release/main.js:1:6980)
at /private/tmp/blade-formatter/src/vsctm.js:60:22
at arrayMap (/private/tmp/blade-formatter/node_modules/lodash/lodash.js:653:23)
at Function.map (/private/tmp/blade-formatter/node_modules/lodash/lodash.js:9622:14)
at VscodeTextmate.tokenizeLines (/private/tmp/blade-formatter/src/vsctm.js:59:14)
at /private/tmp/blade-formatter/src/formatter.js:479:38
} |
I tried it again in my environment, but I guess the only way to do it for now is to use the
|
Solved with Obviously this is not a viable fix for the library, it's just a fix for my vim configuration. |
I have confirmed that this issue was resolved in |
Sorry for late reply. I'm bit busy for work on this month... @kabouzeid |
https://stackoverflow.com/questions/67241196/error-no-template-named-remove-cv-t-in-namespace-std-did-you-mean-remove
The text was updated successfully, but these errors were encountered: