Comments (7)
Thanks for all your help, it woks now!
With version 0.4.4 and adding
{
test: /codemirror-json-schema/,
resolve: { fullySpecified: false }
}
to the webpack rules everything is fine.
from codemirror-json-schema.
we don't ship a main
entry yet but we probably should!
from codemirror-json-schema.
@boristian try 0.4.3!
from codemirror-json-schema.
Thanks for your quick response.
When using import
I'm still getting the same error.
With
const { jsonSchema } = require('codemirror-json-schema')
I get
Uncaught ReferenceError: exports is not defined at eval (index.js:17:23)
from codemirror-json-schema.
Sorry, 0.4.4 is also not working for me.
from codemirror-json-schema.
@boristian sorry to hear - @imolorhe tried to reproduce the issue with webpack but couldn't - are you able to create a codesandbox that reproduces this bug? i have a hunch that the node version is a factor here
from codemirror-json-schema.
@boristian try the suggested solution here webpack/webpack#11467 (comment)
TLDR, add the following to your webpack config:
{
test: /\.m?js/, // maybe change this regex to match codemirror-json-schema specifically e.g. /codemirror-json-schema/
resolve: {
fullySpecified: false
}
}
from codemirror-json-schema.
Related Issues (20)
- simple schema service - pass a single schema service instance to the classes for each lang feature
- basic initial docs
- typedoc markdown
- all codemirror deps should be peer dependencies
- typedoc on release PR only?
- json5 support track HOT 1
- completion insertText for known types
- adopt changesets
- adopt `json-schema-library` improvements
- Error message: can't find module HOT 32
- Custom value autocompletion HOT 3
- Expected type not working HOT 3
- support complex base types
- "required" property not checked? HOT 8
- Console error (json format error) HOT 5
- improve styles for demo
- Module "codemirror-json-schema" has no exported member "handleRefresh"
- YAML support HOT 4
- display possible types on hover for each oneOf type
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from codemirror-json-schema.