-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue with fast serve #155
Comments
It looks like it's some kind of issue with your resource localization files. What do you see in network developer tab, are there any failed requests? Where is your localization files are located, are there under regular path like |
There are no failed request. My localization are located in regular path: This is my webpack.extend.js /*
* User webpack settings file. You can add your own settings here.
* Changes from this file will be merged into the base webpack configuration file.
* This file will not be overwritten by the subsequent spfx-fast-serve calls.
*/
/**
* you can add your project related webpack configuration here, it will be merged using webpack-merge module
* i.e. plugins: [new webpack.Plugin()]
*/
const webpackConfig = {
devServer: {
hot: true,
liveReload: false,
},
module: {
rules: [
{
test: /\.(woff2?)(\?.*)?$/,
use: [
{
loader: 'url-loader',
query: {
limit: 10000,
mimetype: 'application/font-woff',
},
},
],
},
],
},
};
/**
* For even more fine-grained control, you can apply custom webpack settings using below function
* @param {object} initialWebpackConfig - initial webpack config object
* @param {object} webpack - webpack object, used by SPFx pipeline
* @returns webpack config object
*/
const transformConfig = function (initialWebpackConfig, webpack) {
// transform the initial webpack config here, i.e.
// initialWebpackConfig.plugins.push(new webpack.Plugin()); etc.
return initialWebpackConfig;
};
// eslint-disable-next-line no-undef
module.exports = {
webpackConfig,
transformConfig,
};
Is there other file that I shoud check? |
The config looks good. It seems it's something related to your configuration, but tbh it's difficult to say what exactly. Are you sure your localization files are good? Because the error points directly to your localization files? |
Try rebuilding the project,I had similar kind of issue, when I have installed 'pnp/spfx-controls-react'. Steps I followed, spfx-fast-serve //Nish |
Hi, |
I'm using node v16.20.2
This is my package.json.
The fast serve is successfully running:
But my webparts always return this, meanwhile while I'm using gulp bundle and gulp serve it's always render correctly
Please help, I'm stuck with this
The text was updated successfully, but these errors were encountered: