App crashes when including antl


#1

I have followed this:
https://adonisjs.com/docs/4.1/internationalization#_switch_locale
first I adonis install @adonisjs/antl then including it in app/start.js doing '@adonisjs/antl/providers/AntlProvider'.

This is what I get:

SyntaxError: Unexpected token :


1 anonymous
  /project/node_modules/require-all/index.js:52

2 requireAll
  /project/node_modules/require-all/index.js:34

3 anonymous
  /project/node_modules/require-all/index.js:40

4 requireAll
  /project/node_modules/require-all/index.js:34

5 FileLoader.load
 /project/node_modules/@adonisjs/antl/src/Loaders/File.js:78

Application crashed, make sure to kill all related running process, fix the issue and re-run the app

tsu@local:~/project$ node -v
v9.0.0
tsu@local:~/project$ npm -v
5.6.0


#2

Your locale json files have syntax error


#3

You’re right! Great!
That error is not really helpful :smiley: