empiricaly / empirica

Open source project to tackle the problem of long development cycles required to produce software to conduct multi-participant and real-time human experiments online.
https://empirica.ly/
Apache License 2.0
44 stars 8 forks source link

Internal server error: unexpected token A in JSON #488

Closed aliciamchen closed 4 months ago

aliciamchen commented 7 months ago

Is there an existing issue for this?

What happened?

I updated to 1.9.1 and I'm not able to test my experiment locally -- it gives me an internal server error.

Steps To Reproduce

Run empirica in experiment directory for local testing

Empirica Version

Version: v1.9.1
SHA:     9afaca9
Build:   170
Branch:  main
Time:    2024-01-07T08:10:42Z

Client:  1.9.1
Server:  1.9.1

What OS are you seeing the problem on?

macOS

What browser are you seeing the problem on?

Does not apply

Relevant log output

empirica

   Empirica (build #170) server running:                                                                                                                                                                           

      Player  http://localhost:3000                                                                                                                                                                                
      Admin   http://localhost:3000/admin                                                                                                                                                                          

11:47:09 AM [vite] Failed to load source map for /node_modules/@empirica/core/dist/player.css.
Unexpected token A in JSON at position 24703
11:47:10 AM [vite] Internal server error: Unexpected token A in JSON at position 24703
  Plugin: vite:css
  File: /Users/aliciachen/Dropbox/projects/adaptive_teaching/experiments/exp3/client/node_modules/@empirica/core/dist/player.css
      at JSON.parse (<anonymous>)
      at Object.parseSourceMapInput (/Users/aliciachen/Dropbox/projects/adaptive_teaching/experiments/exp3/client/node_modules/source-map-js/lib/util.js:539:15)
      at new SourceMapConsumer (/Users/aliciachen/Dropbox/projects/adaptive_teaching/experiments/exp3/client/node_modules/source-map-js/lib/source-map-consumer.js:17:22)
      at PreviousMap.consumer (/Users/aliciachen/Dropbox/projects/adaptive_teaching/experiments/exp3/client/node_modules/postcss/lib/previous-map.js:33:28)
      at new Input (/Users/aliciachen/Dropbox/projects/adaptive_teaching/experiments/exp3/client/node_modules/postcss/lib/input.js:52:24)
      at parse (/Users/aliciachen/Dropbox/projects/adaptive_teaching/experiments/exp3/client/node_modules/postcss/lib/parse.js:8:15)
      at new LazyResult (/Users/aliciachen/Dropbox/projects/adaptive_teaching/experiments/exp3/client/node_modules/postcss/lib/lazy-result.js:133:16)
      at Processor.process (/Users/aliciachen/Dropbox/projects/adaptive_teaching/experiments/exp3/client/node_modules/postcss/lib/processor.js:28:14)
      at compileCSS (/Users/aliciachen/Dropbox/projects/adaptive_teaching/experiments/exp3/client/node_modules/vite/dist/node/chunks/dep-689425f3.js:37465:10)
      at async TransformContext.transform (/Users/aliciachen/Dropbox/projects/adaptive_teaching/experiments/exp3/client/node_modules/vite/dist/node/chunks/dep-689425f3.js:37010:55)
      at async Object.transform (/Users/aliciachen/Dropbox/projects/adaptive_teaching/experiments/exp3/client/node_modules/vite/dist/node/chunks/dep-689425f3.js:39317:30)
      at async doTransform (/Users/aliciachen/Dropbox/projects/adaptive_teaching/experiments/exp3/client/node_modules/vite/dist/node/chunks/dep-689425f3.js:50043:29)

Anything else?

No response

Code of Conduct

npaton commented 4 months ago

I don't think this is happening anymore. Please reopen if it is happening.