When I open a JavaScript file, the file appears as plain text. When I activate javascript-mode
in more (SPC
SPC
) on a .js file, then the file is correctly formatted.
I have the layer installed with the following configuration under dotspacemacs-configuration-layers
:
(javascript :variables
javascript-backend 'tern
javascript-fmt-tool 'prettier
javascript-import-tool 'import-js
node-add-modules-path t
js2-include-node-externs t
js2-strict-missing-semi-warning nil
javascript-repl `nodejs)
I have been verifying my installation + configuration here. I don't see anything out of the ordinary. Here is my .spacemacs
file for reference.
auto-mode-alist
? Probably somethings line ` ("\\.js[mx]?\\'" . javascript-mode)`.(add-to-list 'auto-mode-alist '("\\.jsx?$" . "\\.js[x]?\\'"))
in dotspacemacs/user-config