Mdx-deck: Module parse failed: Unexpected token m in JSON at position 0 while parsing near 'module.exports = "{\...'

Created on 12 Feb 2019  路  2Comments  路  Source: jxnblk/mdx-deck

I am facing the follow error for

Module parse failed: Unexpected token m in JSON at position 0 while parsing near 'module.exports = "{\...'
You may need an appropriate loader to handle this file type.
SyntaxError: Unexpected token m in JSON at position 0 while parsing near 'module.exports = "{\...'
    at JSON.parse (<anonymous>)

the file is this one:

{
  "expo": {
    "name": "My Awesome Project",
    "slug": "my-awesome-project",
    "privacy": "public",
    "sdkVersion": "32.0.0",
    "platforms": [
      "ios",
      "android"
    ],
    "version": "1.0.0",
    "orientation": "portrait",
    "icon": "./assets/icon.png",
    "splash": {
      "image": "./assets/splash.png",
      "resizeMode": "contain",
      "backgroundColor": "#ffffff"
    },
    "updates": {
      "fallbackToCacheTimeout": 0
    },
    "assetBundlePatterns": [
      "**/*"
    ],
    "ios": {
      "supportsTablet": true
    }
  }
}

I am trying to render line "image": "./assets/splash.png", on code surfer

All 2 comments

Sorry for the delay, can you provide a code example of what you have in your MDX deck file and any relevant code involving CodeSurfer?

I guess I've fixed it, thanks.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

broccolini picture broccolini  路  4Comments

codepunkt picture codepunkt  路  5Comments

wesbos picture wesbos  路  6Comments

dance2die picture dance2die  路  5Comments

zz1211 picture zz1211  路  7Comments