menu

Spectrum Support

Spectrum is a community platform for the future. This community is a great place to ask questions, request features, report bugs, and chat with the Spectrum team.

Channels
# All channels
view-forward
# General
view-forward
# Feature Requests
view-forward
# Meta
view-forward
# Open
view-forward
# Help
view-forward
Team

NODE_PATH=../ react-scripts start doesn't work

February 10, 2019 at 12:55pm

NODE_PATH=../ react-scripts start doesn't work

February 10, 2019 at 12:55pm
I'm trying to launch the admin dashboard locally.
cd admin
yarn start
Then met this problem:
Failed to compile.
./src/views/communities/components/search/index.js
Line 151: 'ENTER' is not defined no-undef
This line was
import {
ESC,
BACKSPACE,
ENTER,
ARROW_DOWN,
ARROW_UP,
} from 'src/helpers/keycodes';
Seems can't import from absolute path.

February 10, 2019 at 1:18pm
Yeah, I think those constants need to be copy-and-pasted to the admin app! We have not worked on that for a while, so it is not surprising that it is a bit broken ๐Ÿ™ˆ
  • reply
  • like
:-D
  • reply
  • like

February 16, 2019 at 1:06pm
You can just add ENTER to the list. It will run. However the real issue is not on the ENTER constant.
Edited
like-fill
2
  • reply
  • like
You can just add ENTER to the list. It will run. However the real issue is not on the ENTER constant.
Thanks! Let me try!
  • reply
  • like

March 7, 2019 at 12:51pm
Yeah, we haven't touched the admin stuff in a long, long time. Best of luck!
like-fill
4
  • reply
  • like