19,034 matches across 25 files for error lang:JavaScript lang:JavaScript
snippet_mode: auto · sorted by relevance
packages/react-server/src/ReactFlightServer.js JAVASCRIPT 367 matches · showing 5 view file →
33 completeWriting,
34 close,
35 closeWithError,
36} from './ReactServerStreamConfig';
37
· · ·
65 ReactCallSite,
66 ReactFunctionLocation,
67 ReactErrorInfo,
68 ReactErrorInfoDev,
69 ReactKey,
· · ·
68 ReactErrorInfoDev,
69 ReactKey,
70} from 'shared/ReactTypes';
· · ·
143
144import {
145 describeObjectForErrorMessage,
146 isGetter,
147 isSimpleObject,
· · ·
149 jsxChildrenParents,
150 objectName,
151} from 'shared/ReactSerializationErrors';
152
153import ReactSharedInternals from './ReactSharedInternalsServer';
+ 362 more matches in this file
packages/react-devtools-shared/src/backend/fiber/renderer.js JAVASCRIPT 210 matches · showing 5 view file →
81 TREE_OPERATION_REORDER_CHILDREN,
82 TREE_OPERATION_SET_SUBTREE_MODE,
83 TREE_OPERATION_UPDATE_ERRORS_OR_WARNINGS,
84 TREE_OPERATION_UPDATE_TREE_BASE_DURATION,
85 TREE_OPERATION_APPLIED_ACTIVITY_SLICE_CHANGE,
· · ·
123} from 'react-devtools-shared/src/backend/DevToolsNativeHost';
124import {
125 isError,
126 rootSupportsProfiling,
127 isErrorBoundary,
· · ·
127 isErrorBoundary,
128 getSecondaryEnvironmentName,
129 areEqualRects,
· · ·
441 overridePropsRenamePath,
442 scheduleRefresh,
443 setErrorHandler,
444 setSuspenseHandler,
445 scheduleUpdate,
· · ·
447 getCurrentFiber,
448 } = renderer;
449 const supportsTogglingError =
450 typeof setErrorHandler === 'function' &&
451 typeof scheduleUpdate === 'function';
+ 205 more matches in this file
packages/react-server/src/ReactFizzServer.js JAVASCRIPT 379 matches · showing 5 view file →
43import type {ThenableState} from './ReactFizzThenable';
44
45import {describeObjectForErrorMessage} from 'shared/ReactSerializationErrors';
46
47import {
· · ·
54 flushBuffered,
55 close,
56 closeWithError,
57 byteLengthOfChunk,
58} from './ReactServerStreamConfig';
· · ·
135 getActionStateCount,
136 getActionStateMatchingIndex,
137 createRecoverableError,
138 isRecoverableError,
139 cloneRecoverableErrorAsFatal,
· · ·
138 isRecoverableError,
139 cloneRecoverableErrorAsFatal,
140} from './ReactFizzHooks';
· · ·
139 cloneRecoverableErrorAsFatal,
140} from './ReactFizzHooks';
141import {DefaultAsyncDispatcher} from './ReactFizzAsyncDispatcher';
+ 374 more matches in this file
packages/react-client/src/ReactFlightClient.js JAVASCRIPT 256 matches · showing 5 view file →
18 ReactStackTrace,
19 ReactFunctionLocation,
20 ReactErrorInfoDev,
21} from 'shared/ReactTypes';
22import type {LazyComponent} from 'react/src/ReactLazy';
· · ·
79 logDedupedComponentRender,
80 logComponentAborted,
81 logComponentErrored,
82 logIOInfo,
83 logIOInfoErrored,
· · ·
83 logIOInfoErrored,
84 logComponentAwait,
85 logComponentAwaitAborted,
· · ·
86 logComponentAwaitErrored,
87} from './ReactFlightPerformanceTrack';
88
· · ·
104import {injectInternals} from './ReactFlightClientDevToolsHook';
105
106import {OMITTED_PROP_ERROR} from 'shared/ReactFlightPropertyAccess';
107
108import ReactVersion from 'shared/ReactVersion';
+ 251 more matches in this file
packages/react-reconciler/src/ReactFiberWorkLoop.js JAVASCRIPT 230 matches · showing 5 view file →
66import is from 'shared/objectIs';
67
68import reportGlobalError from 'shared/reportGlobalError';
69
70import {
· · ·
85 logSuspendedRenderPhase,
86 logRecoveredRenderPhase,
87 logErroredRenderPhase,
88 logInconsistentRender,
89 logSuspendedWithDelayPhase,
· · ·
198 getNextLanes,
199 getEntangledLanes,
200 getLanesToRetrySynchronouslyOnError,
201 upgradePendingLanesToSync,
202 markRootSuspended as _markRootSuspended,
· · ·
238import {
239 throwException,
240 createRootErrorUpdate,
241 createClassErrorUpdate,
242 initializeClassErrorUpdate,
· · ·
241 createClassErrorUpdate,
242 initializeClassErrorUpdate,
243} from './ReactFiberThrow';
+ 225 more matches in this file
packages/react-dom-bindings/src/server/ReactFizzConfigDOM.js JAVASCRIPT 149 matches · showing 5 view file →
467 if (onHeaders && typeof maxHeadersLength === 'number') {
468 if (maxHeadersLength <= 0) {
469 console.error(
470 'React expected a positive non-zero `maxHeadersLength` option but found %s instead. When using the `onHeaders` option you may supply an optional `maxHeadersLength` option as well however, when setting this value to zero or less no headers will be captured.',
471 maxHeadersLength === 0 ? 'zero' : maxHeadersLength,
· · ·
1271): void {
1272 if (typeof style !== 'object') {
1273 throw new Error(
1274 'The `style` prop expects a mapping from style properties to values, ' +
1275 "not a string. For example, style={{marginRight: spacing + 'em'}} when " +
· · ·
1391 escapeTextForBrowser(
1392 // eslint-disable-next-line no-script-url
1393 "javascript:throw new Error('React form unexpectedly submitted.')",
1394 ),
1395);
· · ·
1422function validateAdditionalFormField(value: string | File, key: string): void {
1423 if (typeof value !== 'string') {
1424 throw new Error(
1425 'File/Blob fields are not yet supported in progressive forms. ' +
1426 'Will fallback to client hydration.',
· · ·
1459 // work there.
1460 if (__DEV__) {
1461 // TODO: Should this be some kind of recoverable error?
1462 console.error(
1463 'Failed to serialize an action for progressive enhancement:\n%s',
+ 144 more matches in this file
packages/react-dom-bindings/src/client/ReactFiberConfigDOM.js JAVASCRIPT 119 matches · showing 5 view file →
583 !isScriptDataBlock(props)
584 ) {
585 console.error(
586 'Encountered a script tag while rendering React component. ' +
587 'Scripts inside React components are never executed when rendering ' +
· · ·
633 // Even if you use `is`, these should be of known type and lower case.
634 if (type !== type.toLowerCase()) {
635 console.error(
636 '<%s /> is using incorrect casing. ' +
637 'Use PascalCase for React components, ' +
· · ·
647 ) {
648 warnedUnknownTags[type] = true;
649 console.error(
650 'The tag <%s> is unrecognized in this browser. ' +
651 'If you meant to render a React component, start its name with ' +
· · ·
874 : typeof localPromise !== 'undefined'
875 ? callback =>
876 localPromise.resolve(null).then(callback).catch(handleErrorInNextTick)
877 : scheduleTimeout; // TODO: Determine the best fallback here.
878
· · ·
879function handleErrorInNextTick(error: any) {
880 setTimeout(() => {
881 throw error;
+ 114 more matches in this file
packages/react-reconciler/src/ReactFiberCommitWork.js JAVASCRIPT 66 matches · showing 5 view file →
129 pushComponentEffectDuration,
130 popComponentEffectDuration,
131 pushComponentEffectErrors,
132 popComponentEffectErrors,
133 pushComponentEffectDidSpawnUpdate,
· · ·
132 popComponentEffectErrors,
133 pushComponentEffectDidSpawnUpdate,
134 popComponentEffectDidSpawnUpdate,
· · ·
136 componentEffectEndTime,
137 componentEffectDuration,
138 componentEffectErrors,
139 componentEffectSpawnedUpdate,
140} from './ReactProfilerTimer';
· · ·
141import {
142 logComponentRender,
143 logComponentErrored,
144 logComponentEffect,
145 logComponentMount,
· · ·
186} from './ReactFiberConfig';
187import {
188 captureCommitPhaseError,
189 resolveRetryWakeable,
190 markCommitTimeOfFallback,
+ 61 more matches in this file
packages/react-dom-bindings/src/client/ReactDOMComponent.js JAVASCRIPT 66 matches · showing 5 view file →
106 props.children != null
107 ) {
108 console.error(
109 'A component is `contentEditable` and contains `children` managed by ' +
110 'React. It is now your responsibility to guarantee that none of ' +
· · ·
128 if (tag === 'form') {
129 if (key === 'formAction') {
130 console.error(
131 'You can only pass the formAction prop to <input> or <button>. Use the action prop on <form>.',
132 );
· · ·
137 ) {
138 didWarnFormActionMethod = true;
139 console.error(
140 'Cannot specify a encType or method for a form that specifies a ' +
141 'function as the action. React provides those automatically. ' +
· · ·
145 if (props.target != null && !didWarnFormActionTarget) {
146 didWarnFormActionTarget = true;
147 console.error(
148 'Cannot specify a target for a form that specifies a function as the action. ' +
149 'The function will always be executed in the same window.',
· · ·
153 } else if (tag === 'input' || tag === 'button') {
154 if (key === 'action') {
155 console.error(
156 'You can only pass the action prop to <form>. Use the formAction prop on <input> or <button>.',
157 );
+ 61 more matches in this file
packages/react-reconciler/src/ReactFiberBeginWork.js JAVASCRIPT 91 matches · showing 5 view file →
173 isSuspenseInstancePending,
174 isSuspenseInstanceFallback,
175 getSuspenseInstanceFallbackErrorDetails,
176 supportsHydration,
177 supportsResources,
· · ·
183} from './ReactFiberConfig';
184import type {ActivityInstance, SuspenseInstance} from './ReactFiberConfig';
185import {shouldError, shouldSuspend} from './ReactFiberReconciler';
186import {
187 pushHostContext,
· · ·
248 claimNextHydratableSuspenseInstance,
249 warnIfHydrating,
250 queueHydrationError,
251} from './ReactFiberHydrationContext';
252import {
· · ·
276import {pushCacheProvider, CacheContext} from './ReactFiberCacheComponent';
277import {
278 createCapturedValueFromError,
279 createCapturedValueAtFiber,
280} from './ReactCapturedValue';
· · ·
281import {OffscreenVisible} from './ReactFiberOffscreenComponent';
282import {
283 createClassErrorUpdate,
284 initializeClassErrorUpdate,
285} from './ReactFiberThrow';
+ 86 more matches in this file
packages/react-devtools-shared/src/devtools/store.js JAVASCRIPT 135 matches · showing 5 view file →
18 TREE_OPERATION_REORDER_CHILDREN,
19 TREE_OPERATION_SET_SUBTREE_MODE,
20 TREE_OPERATION_UPDATE_ERRORS_OR_WARNINGS,
21 TREE_OPERATION_UPDATE_TREE_BASE_DURATION,
22 TREE_OPERATION_APPLIED_ACTIVITY_SLICE_CHANGE,
· · ·
80 BridgeProtocol,
81} from 'react-devtools-shared/src/bridge';
82import UnsupportedBridgeOperationError from 'react-devtools-shared/src/UnsupportedBridgeOperationError';
83import type {DevToolsHookSettings} from '../backend/types';
84
· · ·
125 'React::DevTools::recordChangeDescriptions';
126
127type ErrorAndWarningTuples = Array<{id: number, index: number}>;
128
129export type Config = {
· · ·
185 collapseNodesByDefault: [],
186 componentFilters: [],
187 error: [Error],
188 hookSettings: [$ReadOnly<DevToolsHookSettings>],
189 hostInstanceSelected: [Element['id'] | null],
· · ·
212 _bridge: FrontendBridge;
213
214 // Computed whenever _errorsAndWarnings Map changes.
215 _cachedComponentWithErrorCount: number = 0;
216 _cachedComponentWithWarningCount: number = 0;
+ 130 more matches in this file
scripts/bench/benchmarks/pe-no-components/benchmark.js JAVASCRIPT 56 matches · showing 5 view file →
917 };
918
919 var ErrorBoundary9 = function (x) {
920 if (x === 9) {
921 return FluxContainer_AdsPEBIGAdAccountSelectorContainer_8(8);
· · ·
934 }
935 if (x === 57) {
936 return FluxContainer_AdsPETopErrorContainer_35(56);
937 }
938 if (x === 60) {
· · ·
968 };
969
970 var AdsErrorBoundary10 = function (x) {
971 if (x === 10) {
972 return ErrorBoundary9(9);
· · ·
972 return ErrorBoundary9(9);
973 }
974 if (x === 14) {
· · ·
975 return ErrorBoundary9(13);
976 }
977 if (x === 28) {
+ 51 more matches in this file
scripts/bench/benchmarks/pe-functional-components/benchmark.js JAVASCRIPT 57 matches · showing 5 view file →
922 };
923
924 var ErrorBoundary9 = function (props) {
925 if (props.x === 9) {
926 return React.createElement(
· · ·
946 }
947 if (props.x === 57) {
948 return React.createElement(FluxContainer_AdsPETopErrorContainer_35, {
949 x: 56,
950 });
· · ·
989 };
990
991 var AdsErrorBoundary10 = function (props) {
992 if (props.x === 10) {
993 return React.createElement(ErrorBoundary9, {x: 9});
· · ·
993 return React.createElement(ErrorBoundary9, {x: 9});
994 }
995 if (props.x === 14) {
· · ·
996 return React.createElement(ErrorBoundary9, {x: 13});
997 }
998 if (props.x === 28) {
+ 52 more matches in this file
packages/react-reconciler/src/ReactFiberHooks.js JAVASCRIPT 93 matches · showing 5 view file →
339 // Verify deps, but only on mount to avoid extra checks.
340 // It's unlikely their type would change as usually you define them inline.
341 console.error(
342 '%s received a final argument that is not an array (instead, received `%s`). When ' +
343 'specified, the final argument must be an array.',
· · ·
380 }
381
382 console.error(
383 'React has detected a change in the order of Hooks called by %s. ' +
384 'This will lead to bugs and errors if not fixed. ' +
· · ·
384 'This will lead to bugs and errors if not fixed. ' +
385 'For more information, read the Rules of Hooks: https://react.dev/link/rules-of-hooks\n\n' +
386 ' Previous render Next render\n' +
· · ·
402 didWarnAboutUseFormState.add(componentName);
403
404 console.error(
405 'ReactDOM.useFormState has been renamed to React.useActionState. ' +
406 'Please update %s to use React.useActionState.',
· · ·
429 if (!didWarnAboutAsyncClientComponent.has(componentName)) {
430 didWarnAboutAsyncClientComponent.add(componentName);
431 console.error(
432 '%s is an async Client Component. ' +
433 'Only Server Components can be async at the moment. This error is often caused by accidentally ' +
+ 88 more matches in this file
packages/react-reconciler/src/ReactFiberPerformanceTrack.js JAVASCRIPT 87 matches · showing 5 view file →
252 ? 'tertiary-dark'
253 : 'primary-dark'
254 : 'error';
255
256 if (!__DEV__) {
· · ·
373}
374
375export function logComponentErrored(
376 fiber: Fiber,
377 startTime: number,
· · ·
378 endTime: number,
379 errors: Array<CapturedValue<mixed>>,
380): void {
381 if (supportsUserTiming) {
· · ·
388 let debugTask: ?ConsoleTask = null;
389 const properties: Array<[string, string]> = [];
390 for (let i = 0; i < errors.length; i++) {
391 const capturedValue = errors[i];
392 if (debugTask == null && capturedValue.source !== null) {
· · ·
391 const capturedValue = errors[i];
392 if (debugTask == null && capturedValue.source !== null) {
393 // If the captured value has a source Fiber, use its debugTask for
+ 82 more matches in this file
packages/react-server/src/ReactFlightReplyServer.js JAVASCRIPT 104 matches · showing 5 view file →
51 enqueueModel(json: string): void;
52 close(json: string): void;
53 error(error: Error): void;
54}
55
· · ·
66const RESOLVED_MODEL = 'resolved_model';
67const INITIALIZED = 'fulfilled';
68const ERRORED = 'rejected';
69
70const __PROTO__ = '__proto__';
· · ·
105 then(resolve: (ReadableStream) => mixed, reject?: (mixed) => mixed): void,
106};
107type ErroredChunk<T> = {
108 status: 'rejected',
109 value: null,
· · ·
116 | ResolvedModelChunk<T>
117 | InitializedChunk<T>
118 | ErroredChunk<T>;
119
120// $FlowFixMe[missing-this-annot]
· · ·
146 let inspectedValue = chunk.value;
147 // Recursively check if the value is itself a ReactPromise and if so if it points
148 // back to itself. This helps catch recursive thenables early error.
149 let cycleProtection = 0;
150 const visited = new Set<typeof ReactPromise>();
+ 99 more matches in this file
scripts/bench/benchmarks/pe-class-components/benchmark.js JAVASCRIPT 57 matches · showing 5 view file →
940 }
941
942 class ErrorBoundary9 extends React.Component {
943 render() {
944 if (this.props.x === 9) {
· · ·
967 }
968 if (this.props.x === 57) {
969 return React.createElement(FluxContainer_AdsPETopErrorContainer_35, {
970 x: 56,
971 });
· · ·
1016 }
1017
1018 class AdsErrorBoundary10 extends React.Component {
1019 render() {
1020 if (this.props.x === 10) {
· · ·
1021 return React.createElement(ErrorBoundary9, {x: 9});
1022 }
1023 if (this.props.x === 14) {
· · ·
1024 return React.createElement(ErrorBoundary9, {x: 13});
1025 }
1026 if (this.props.x === 28) {
+ 52 more matches in this file
fixtures/legacy-jsx-runtimes/react-17/cjs/react-jsx-dev-runtime.development.js JAVASCRIPT 48 matches · showing 5 view file →
85var ReactSharedInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
86
87function error(format) {
88 {
89 for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
· · ·
91 }
92
93 printWarning('error', format, args);
94 }
95}
· · ·
159 {
160 if (typeof type.tag === 'number') {
161 error('Received an unexpected object in getComponentName(). ' + 'This is likely a bug in React. Please file an issue.');
162 }
163 }
· · ·
236var prevInfo;
237var prevWarn;
238var prevError;
239var prevGroup;
240var prevGroupCollapsed;
· · ·
251 prevInfo = console.info;
252 prevWarn = console.warn;
253 prevError = console.error;
254 prevGroup = console.group;
255 prevGroupCollapsed = console.groupCollapsed;
+ 43 more matches in this file
fixtures/legacy-jsx-runtimes/react-17/cjs/react-jsx-runtime.development.js JAVASCRIPT 48 matches · showing 5 view file →
85var ReactSharedInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
86
87function error(format) {
88 {
89 for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
· · ·
91 }
92
93 printWarning('error', format, args);
94 }
95}
· · ·
159 {
160 if (typeof type.tag === 'number') {
161 error('Received an unexpected object in getComponentName(). ' + 'This is likely a bug in React. Please file an issue.');
162 }
163 }
· · ·
236var prevInfo;
237var prevWarn;
238var prevError;
239var prevGroup;
240var prevGroupCollapsed;
· · ·
251 prevInfo = console.info;
252 prevWarn = console.warn;
253 prevError = console.error;
254 prevGroup = console.group;
255 prevGroupCollapsed = console.groupCollapsed;
+ 43 more matches in this file
packages/react-reconciler/src/ReactChildFiber.js JAVASCRIPT 40 matches · showing 5 view file →
167
168 if (typeof child._store !== 'object') {
169 throw new Error(
170 'React Component in warnForMissingKey should have a _store. ' +
171 'This error is likely caused by a bug in React. Please file an issue.',
· · ·
171 'This error is likely caused by a bug in React. Please file an issue.',
172 );
173 }
· · ·
187 const parentOwner = returnFiber._debugOwner;
188
189 let currentComponentErrorInfo = '';
190 if (parentOwner && typeof parentOwner.tag === 'number') {
191 const name = getComponentNameFromFiber(parentOwner as any);
· · ·
192 if (name) {
193 currentComponentErrorInfo =
194 '\n\nCheck the render method of `' + name + '`.';
195 }
· · ·
196 }
197 if (!currentComponentErrorInfo) {
198 if (componentName) {
199 currentComponentErrorInfo = `\n\nCheck the top-level render call using <${componentName}>.`;
+ 35 more matches in this file
packages/react-reconciler/src/ReactFiberCommitEffects.js JAVASCRIPT 53 matches · showing 5 view file →
57} from './ReactFiberConfig';
58import {
59 captureCommitPhaseError,
60 setIsRunningInsertionEffect,
61} from './ReactFiberWorkLoop';
· · ·
226 finishedWork,
227 (n, a) => {
228 console.error(
229 '%s must not return anything besides a function, ' +
230 'which is used for clean-up.%s',
· · ·
242 } while (effect !== firstEffect);
243 }
244 } catch (error) {
245 captureCommitPhaseError(finishedWork, finishedWork.return, error);
246 }
· · ·
245 captureCommitPhaseError(finishedWork, finishedWork.return, error);
246 }
247}
· · ·
298 } while (effect !== firstEffect);
299 }
300 } catch (error) {
301 captureCommitPhaseError(finishedWork, finishedWork.return, error);
302 }
+ 48 more matches in this file
fixtures/legacy-jsx-runtimes/react-16/cjs/react-jsx-dev-runtime.development.js JAVASCRIPT 35 matches · showing 5 view file →
84var ReactSharedInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
85
86function error(format) {
87 {
88 for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
· · ·
90 }
91
92 printWarning('error', format, args);
93 }
94}
· · ·
200 {
201 if (typeof type.tag === 'number') {
202 error('Received an unexpected object in getComponentName(). ' + 'This is likely a bug in React. Please file an issue.');
203 }
204 }
· · ·
280 for (var typeSpecName in typeSpecs) {
281 if (has(typeSpecs, typeSpecName)) {
282 var error$1 = void 0; // Prop type validation may throw. In case they do, we don't want to
283 // fail the render phase where it didn't fail before. So we log it.
284 // After these have been cleaned up, we'll let them throw.
· · ·
288 // behavior as without this statement except with a better message.
289 if (typeof typeSpecs[typeSpecName] !== 'function') {
290 var err = Error((componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' + 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.' + 'This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.');
291 err.name = 'Invariant Violation';
292 throw err;
+ 30 more matches in this file
fixtures/legacy-jsx-runtimes/react-16/cjs/react-jsx-runtime.development.js JAVASCRIPT 35 matches · showing 5 view file →
84var ReactSharedInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
85
86function error(format) {
87 {
88 for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
· · ·
90 }
91
92 printWarning('error', format, args);
93 }
94}
· · ·
201 {
202 if (typeof type.tag === 'number') {
203 error('Received an unexpected object in getComponentName(). ' + 'This is likely a bug in React. Please file an issue.');
204 }
205 }
· · ·
284 for (var typeSpecName in typeSpecs) {
285 if (has(typeSpecs, typeSpecName)) {
286 var error$1 = void 0; // Prop type validation may throw. In case they do, we don't want to
287 // fail the render phase where it didn't fail before. So we log it.
288 // After these have been cleaned up, we'll let them throw.
· · ·
292 // behavior as without this statement except with a better message.
293 if (typeof typeSpecs[typeSpecName] !== 'function') {
294 var err = Error((componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' + 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.' + 'This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.');
295 err.name = 'Invariant Violation';
296 throw err;
+ 30 more matches in this file
fixtures/legacy-jsx-runtimes/react-15/cjs/react-jsx-dev-runtime.development.js JAVASCRIPT 34 matches · showing 5 view file →
83}
84
85function error(format) {
86 {
87 for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
· · ·
89 }
90
91 printWarning('error', format, args);
92 }
93}
· · ·
194 {
195 if (typeof type.tag === 'number') {
196 error('Received an unexpected object in getComponentName(). ' + 'This is likely a bug in React. Please file an issue.');
197 }
198 }
· · ·
273 for (var typeSpecName in typeSpecs) {
274 if (has(typeSpecs, typeSpecName)) {
275 var error$1 = void 0; // Prop type validation may throw. In case they do, we don't want to
276 // fail the render phase where it didn't fail before. So we log it.
277 // After these have been cleaned up, we'll let them throw.
· · ·
281 // behavior as without this statement except with a better message.
282 if (typeof typeSpecs[typeSpecName] !== 'function') {
283 var err = Error((componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' + 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.' + 'This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.');
284 err.name = 'Invariant Violation';
285 throw err;
+ 29 more matches in this file
fixtures/legacy-jsx-runtimes/react-14/cjs/react-jsx-dev-runtime.development.js JAVASCRIPT 34 matches · showing 5 view file →
82}
83
84function error(format) {
85 {
86 for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
· · ·
88 }
89
90 printWarning('error', format, args);
91 }
92}
· · ·
189 {
190 if (typeof type.tag === 'number') {
191 error('Received an unexpected object in getComponentName(). ' + 'This is likely a bug in React. Please file an issue.');
192 }
193 }
· · ·
268 for (var typeSpecName in typeSpecs) {
269 if (has(typeSpecs, typeSpecName)) {
270 var error$1 = void 0; // Prop type validation may throw. In case they do, we don't want to
271 // fail the render phase where it didn't fail before. So we log it.
272 // After these have been cleaned up, we'll let them throw.
· · ·
276 // behavior as without this statement except with a better message.
277 if (typeof typeSpecs[typeSpecName] !== 'function') {
278 var err = Error((componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' + 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.' + 'This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.');
279 err.name = 'Invariant Violation';
280 throw err;
+ 29 more matches in this file
Search syntax
auth loginboth terms (AND is implicit)
auth OR logineither term
NOT path:vendorexclude matches
"exact phrase"quoted exact match
/func\s+Test/regex
handler~1fuzzy (Levenshtein 1)
file:*_test.gofilename glob
path:pkg/auth/**full path glob
lang:golanguage filter

Search any public repo from your terminal

This page calls POST /api/v1/code_search. Same tool, available over MCP for Claude/Cursor/Copilot.