Comments (3)
Solved by editing import statement in highlight.js:
From:
import {
highlight as prismHighlight,
languages as prismLanguages,
} from "prismjs/components/prism-core";
To:
import {
highlight as prismHighlight,
languages as prismLanguages,
} from "prismjs";
Possible treeshaking issue with some versions of webpack?
from strapi-plugin-import-export-content.
Similar issue here:
prism-json.js:2 Uncaught ReferenceError: Prism is not defined
at Object../node_modules/prismjs/components/prism-json.js (prism-json.js:2)
at __webpack_require__ (bootstrap:84)
at Object../.cache/plugins/strapi-plugin-import-export-content/admin/src/utils/highlight.js (highlight.js:5)
at __webpack_require__ (bootstrap:84)
at Object../.cache/plugins/strapi-plugin-import-export-content/admin/src/components/DataViewer/index.js (index.js:6)
at __webpack_require__ (bootstrap:84)
at Object../.cache/plugins/strapi-plugin-import-export-content/admin/src/components/UploadFileForm/index.js (index.js:5)
at __webpack_require__ (bootstrap:84)
at Object../.cache/plugins/strapi-plugin-import-export-content/admin/src/containers/ImportPage/index.js (index.js:9)
at __webpack_require__ (bootstrap:84)
Tested on Strapi versions: 3.6.2, 3.6.5
Node v14.16.0
Browser: Chrome
strapi-plugin-import-export-content: 0.4.0
Tested with yarnv2 and nodeLinker: 'node-modules'
Also tried yarn build --clean
Similarly to @Barenstaden, I changed the following in highlight.js
import "prismjs/components/prism-json";
to:
import "prismjs"
from strapi-plugin-import-export-content.
Thank you very much for your help, I have already added this changes to version 0.4.1
from strapi-plugin-import-export-content.
Related Issues (20)
- Plugin Title/Description mismatch
- Error 405 when clicking on Analyze in prod HOT 2
- Import timestamps
- Missing strapi-utils and MaxListenersExceededWarning after running
- Import plugin unexpectedly skipping valid data during import
- Import fails when field is `null` HOT 2
- Request: Reporting import errors when some records fail
- Export is limited to 100 items HOT 2
- [Solved] No Items Imported
- Unable to import CSV: Unexpected mixed field HOT 1
- Can't Export HOT 3
- error for icon package so it wont let me build the project
- Ability to update and delete records HOT 2
- Support plugin models HOT 1
- When will support for strapi 4.x.x come out? HOT 10
- SyntaxError: JSON.parse
- v4 support
- How to use this plugin HOT 4
- Spread JSON objects in CSV outputs to make them more readable HOT 1
- API tokens not working for the plugin endpoints
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 strapi-plugin-import-export-content.