securingsincity / react-ace

React Ace Component
http://securingsincity.github.io/react-ace/
MIT License
4.01k stars 603 forks source link

mode:json how to set the json syntax check? #1600

Open LynnHg opened 2 years ago

LynnHg commented 2 years ago

Problem

Hello, thanks for your nice job.

I use mode='json', how can I enable json syntax check, and show a lint? like this:

image

I'm very looking forward to your reply ^^

Sample code to reproduce your issue

References

Progress on: #

Rayyyz commented 1 year ago

I have the same problem

AsheKR commented 1 year ago

@Rayyyz @LynnHg

Validation was performed normally when the following modules were imported.

import 'ace-builds/webpack-resolver'
hanoj-budime commented 1 year ago

@Rayyyz @LynnHg

Validation was performed normally when the following modules were imported.

import 'ace-builds/webpack-resolver'

Not working for me?

Any solution?

fabpico commented 5 months ago

@Rayyyz @LynnHg

Validation was performed normally when the following modules were imported.

import 'ace-builds/webpack-resolver'

I get plenty of Module not found: Error: Can't resolve 'file-loader' errors.

ERROR in ./node_modules/ace-builds/webpack-resolver.js 2:44-114
Module not found: Error: Can't resolve 'file-loader' in '/home/foo/development/foo/node_modules/ace-builds'
    "react-ace": "^10.1.0",
    "ace-builds": "^1.32.6",
    "next": "14.0.4",
    "react": "^18",
    "react-dom": "^18",
pranavmappoli commented 1 month ago

@fabpico Got any solution ?

fabpico commented 1 month ago

@fabpico Got any solution ?

I dropped it and used react-codemirror instead. But react-codemirror has other problems with Nextjs.

nightwing commented 1 month ago

Now it is possible to use https://github.com/mkslanc/ace-linters for syntax checking.