Comments (10)
Can you please provide the following information:
- strapi version
- plugin version
- plugin configuration
If possible a reproducible example.
from strapi-plugin-slugify.
This looks to be a bug on strapis end.
The only way I was able to reproduce this was to not have the plugin listed in the plugins.js
file. It looks like if the plugin is not listed in that file the register file for the plugin still triggers while the bootstrap one does not. That is the cause of this issue and not something I should need to fix on my end.
At minimum to fix this issue one of the following configurations in the plugins.js
file is required
slugify:{
enabled: false
}
or
slugify:{
enabled: true
}
I was not able to reproduce the issue with either of the above configurations.
TLDR: it looks to be a bug on strapis side. The plugin should be listed in plugins.js
(which it should be) with a minimum configuration.
from strapi-plugin-slugify.
I'm also facing the same issue.
Strapi Version: v4.1.0
Plugin Version: 2.1.1
Plugin configuration: N/A As I've just installed the plugin and run the server.
Thanks!
from strapi-plugin-slugify.
Hi! Same problem over here..
Strapi Version: v4.1.2
Plugin Version: ^v2.1.1
Plugin Configuration:
(..config/plugins.js)
slugify: {
enabled: true,
config: {
contentTypes: {
instantie: {
field: "slug",
references: "profiel",
},
},
},
},
Thanks in advance!
from strapi-plugin-slugify.
Thank you for the information. I will investigate the issue.
I did test it on my side before release and had no issues. Very strange.
from strapi-plugin-slugify.
I can't reproduce this issue in the exact same constellation.
from strapi-plugin-slugify.
Hi! Same problem over here..
Strapi Version: v4.1.2 Plugin Version: ^v2.1.1 Plugin Configuration:
(..config/plugins.js)
slugify: { enabled: true, config: { contentTypes: { instantie: { field: "slug", references: "profiel", }, }, }, },
Thanks in advance!
@mikeyfe6 do you have a reproducible example? This as this case looks to be different than the original issue, when I tried this configuration the server started with no issue.
from strapi-plugin-slugify.
Hello, I had the same problem and I found how to avoid the issue at least.
In the ./config/plugins.js file you need to make sure to list all the slugify configuration just before the graphql one, therefore, you need to have the graphql plugin config.
module.exports = ({ env }) => ({
slugify: {
enabled: true,
config: {
contentTypes: {
modelName: {
field: 'slug',
references: 'title',
},
},
},
},
graphql: {
enabled: true,
config: {
defaultLimit: 10,
maxLimit: 20,
shadowCRUD: true,
apolloServer: {
tracing: true,
},
}
},
})
P.S: If you switch the plugins config, you might reproduce the error.
from strapi-plugin-slugify.
@ComfortablyCoding with the inverted order in the plugin config it is working... definitely it is a bug in the Strapi plugin system. @maneroto thanks for the hint!!!
Updated repo: https://github.com/vmptk/strapi-slug
from strapi-plugin-slugify.
At the moment it does not look like plugin order can be enforced.
I will add a note about ensuring graphql is placed before the plugin config as well as a minimal config is required.
Thanks @maneroto for finding this requirement.
from strapi-plugin-slugify.
Related Issues (20)
- [FR] add component reference type support HOT 2
- [FR] add relation reference type support HOT 2
- Not working on Strapi 4.11.5 HOT 2
- Plugin working with multiple locales HOT 2
- Sqlite Error, Unique constraint failed slug HOT 4
- strapi 4.14.0: no npm run develop compatibility with v.2.3.4 of strapi-plugin-slugify HOT 9
- Can't run develop after latest update (2.3.5) releashed HOT 8
- Strapi 4.14.2 & GraphQL: Error Cannot read properties of undefined (reading 'admin::permission') HOT 2
- Bump Node Version to Match Strapi HOT 4
- Feature request: multiple references for one slug HOT 2
- Support for Node 18.x.x HOT 1
- Unable to make it works HOT 1
- not working after upgrade strapi 4.6.1 HOT 4
- feat: counter doesn't refresh during modification HOT 3
- Can't get it working, slug Text field does not get set based on product name Text field HOT 4
- Update yup dependency to 1.1.1 HOT 2
- Slugify config on multiple table not generating findBySlug on Settings HOT 1
- Slugify response doesn't get transformed with Transform plugin HOT 2
- receiving error 403 when trying to find by slug HOT 2
- Strapi 4.11.4: Cannot find module '@strapi/utils/lib/errors' HOT 8
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-slugify.